Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to get the process id of the background process launched from within my perl program. I'm trying to do this in my perl code -
I want know the process id of the newly lauched process "a.out". I can get this in a C shell script -system (./a.out &);
How will I do this in perl ? Also, I don't want to call the C shell script from the perl program../a.out & echo $! > /tmp/pidfile
What do I do ??
thanks in advance !!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting the pid of the process launched by my perl program
by edan (Curate) on Dec 21, 2004 at 12:40 UTC | |
by Anonymous Monk on Dec 22, 2004 at 11:05 UTC | |
by Anonymous Monk on Apr 12, 2010 at 11:20 UTC | |
|
Re: Getting the pid of the process launched by my perl program
by ozone (Friar) on Dec 21, 2004 at 12:37 UTC |