|
|
| Think about Loose Coupling | |
| PerlMonks |
How to catch that pid?by mudMonk (Initiate) |
| on Jan 20, 2012 at 22:20 UTC ( #949064=perlquestion: print w/ replies, xml ) | Need Help?? |
|
mudMonk has asked for the
wisdom of the Perl Monks concerning the following question:
My need: I want to run an executable and kill it when I'm done with it. (OS is linux) My problem: I realized open3 returns the pid only at closure. My Question: How to run a system process and capture its pid while it's still running? I've written this mangled piece of code as a patch for now, but I'm sure there are much better answers out there. Your thoughts?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||