in reply to Obtain the child process id in perl
Before the call to system the programm doesn't run yet, and the future PID unpredictable. After it is already finished, and the old PID useless.
And why do you want that anyway? Looks like an XY Problem to me.
And why would you spawn an ls process when you have opendir and readdir as well as glob or File::Find?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Obtain the child process id in perl
by Anonymous Monk on May 26, 2010 at 10:14 UTC | |
by moritz (Cardinal) on May 26, 2010 at 10:21 UTC | |
by Anonymous Monk on May 26, 2010 at 10:36 UTC | |
by almut (Canon) on May 26, 2010 at 10:53 UTC | |
by Anonymous Monk on May 26, 2010 at 12:53 UTC | |
| |
by Corion (Patriarch) on May 26, 2010 at 10:41 UTC | |
by ikegami (Patriarch) on May 26, 2010 at 14:06 UTC |