in reply to How do you find the process ID to any UNIX programs that your Perl program executes?
Also, the open("|") type constructs return the child PID.
update: and loose the & at the end of the syscall, you've already forked off a seperate process.
update2: oh, I forgot. If you do pipes and redirect like you do, you're in fact starting a shell, which starts several other processes. So in fact, the only program started by perl would be the shell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do you find the process ID to any UNIX programs that your Perl program executes?
by rzs96 (Acolyte) on Jul 12, 2005 at 16:40 UTC |