|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^7: question about running a system and a perl function backgroundby BrowserUk (Patriarch) |
| on Jan 07, 2005 at 00:56 UTC ( [id://420181]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
is there a way I can do the same thing using fork and exec? As forking uses threads on my system, I've never explored it's use to any great extent. It is probably possible using some arrangement whereby the original process sets up a separate STDOUT/STDIN prior to forking each command and then uses select to read the ouput from the child processes back into the parent for further processesing, but I am the wrong person to be advising on that. Hopefully someone with more experience of the fork & exec style of coding will step up and provide an example solution. I would also learn a lot from a worked example of this. Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||