Hmm... homework again?
You will need to use
<> to read the commands,
fork and
exec to execute them, and a little of file descriptor shuffling before forking to set stdins and stdouts of child processes correctly. See
close and
open for that (if you know C, perl's
open can mimic the dup function).
-
marcink