CS 284 Operating Systems
Programming Assignment #8
Due: 3/5/2001 - Class Time
Write a C program (Prog8b.c) that
while (not EOF of stdin)
read a %s string
print the string + hypen + argv[1]
Write a C program (Prog8a.c) that
- Create 3 child (prog8b) processes such that
- child 1 reads from pipe 1 and writes to pipe 2
- child 2 reads from pipe 2 and writes to pipe 3
- child 3 reads from pipe 3 and writes to pipe 4
- main then
- reads string tokens from stdin and writes them to pipe 1 UNTIL EOF on
stdin
- reads string tokens from pipe 4 and writes them to the Display UNTIL
EOF on pipe 4
=================================================================
You should use the 'script' command to capture all necessary information for
handin.