UNIX pipe() : Example Programs


  • a simple example - 1 (pipe(), read(), write())
  • a simple example - 2 (pipe(), fork(), read(), write())
  • example - 3 (pipe(), fork(), read(), write())
  • another example - 4 (pipe(), fork(), dup2(), printf(); scanf())
  • yet another Example - 5 (a) ....... 5 (b)
  • Example - 6 (for Assignment 8) (uses pipe(), fork(), dup2(), printf(); scanf())
  • UNIX pipe Example (New-A) ....... UNIX pipe Example (New-B)