Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: help
by mirod (Canon) on Jun 19, 2001 at 14:44 UTC

    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.

Re: help
by marcink (Monk) on Jun 19, 2001 at 14:48 UTC
    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
Re: help
by mugwumpjism (Hermit) on Jun 19, 2001 at 14:50 UTC

    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.