Hi,
Your problem looks a lot like a homework, see Homework Alert! for why a lot of monks generally refuse to do homeworks, and where to find documentation. You can also have a look at the New Monks Info Page for even more documentation links.
Now if you could just share the code you already wrote to solve your problem, we could certainly help you fix it and improve it, but just handing you the solution would be detrimental both for you and for the other people in the class.
| [reply] |
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 | [reply] [d/l] |
Odd, this "friend" must have been issuing this assignment to several of his "friends", I'm sure this is about the third time I've seen this question posted here.
Hint: start with the "perlipc" manpage.
| [reply] |