rzs96 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl $path_current = '/usr01/rzs96/logmining/logs'; print "Firing off process 1\n"; if (fork ()) { # RUN PARENT PROCESS print "PARENT = $$\n"; } else { # RUN CHILD PROCESS print "CHILD = $$\n"; close (STDOUT); # I need to get the PID from this gunzip process! `gunzip -c $path_current/access.webcache*.80.*-1200AM.gz | grep "0 +1225322" > Xtract-1.PID.log &`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you find the process ID to any UNIX programs that your Perl program executes?
by Joost (Canon) on Jul 12, 2005 at 16:27 UTC | |
by rzs96 (Acolyte) on Jul 12, 2005 at 16:40 UTC | |
|
Re: How do you find the process ID to any UNIX programs that your Perl program executes?
by fmerges (Chaplain) on Jul 12, 2005 at 16:30 UTC |