|
|
| more useful options | |
| PerlMonks |
Re: Working with other processes and programsby Linuxboy (Novice) |
| on Sep 18, 2002 at 14:25 UTC ( [id://198946]=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.
Here are a few additional related details:
My pid is in $$ or is returned by getpgrp(0) My parent's pid is getppid()
Launching a process and *not* waiting is done with fork but read the fork docs before using it because it doesn't work like you might expect... Using open instead of fork is probably a better choice much of the time.
Closing the opened handle without reading the output dumps the output to stdout. (this could be implementation specific??)
You can get the exit code of the child process from $? >>8
Linuxboy
In Section
Tutorials
|
|
||||||||||||||||||||||||||||