The stupid question is the question not asked | |
PerlMonks |
Re: Process ID of qxby virtualsue (Vicar) |
on Mar 05, 2007 at 09:43 UTC ( [id://603182]=note: print w/replies, xml ) | Need Help?? |
From within the same program? No, not really. qx/backticks works much like system, in that the execution of your program stops while the command in qx() is executed. When your program resumes execution, the qx() subprocess is gone. See perlop for greater detail on how it works. If you want to spawn child processes in a more flexible, asynchronous way, start by reading fork. Threads, Multi-Processing, and Inter-Process Communication (in Tutorials) provides some interesting research material.
In Section
Seekers of Perl Wisdom
|
|