in reply to How do you get PID of a program called using system call?
as you can see, the above code will gives me 4 processes running in the back ground, but I have no control over those pidsmy $cmd = "process_file -c arg1 -d arg2"; for(1..40) { if(!WINDOWS) { system("$cmd > /dev/null &"); } else { system("sh -c \"$cmd > /tmp/null \"&"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do you get PID of a program called using system call?
by rob_au (Abbot) on Oct 09, 2001 at 06:55 UTC |