stmast has asked for the wisdom of the Perl Monks concerning the following question:
#!/bin/perl use strict; use warnings; my $prog = 'some_executable'; defined( my $pid = fork ) or die "Cannot fork: $!"; print "pid:$pid\n"; unless( $pid ) { exec "$prog"; die "cannot exec date: $!"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Capture PID from child process on Windows.
by BrowserUk (Patriarch) on Nov 08, 2005 at 22:11 UTC | |
Re: Capture PID from child process on Windows.
by GrandFather (Saint) on Nov 08, 2005 at 22:12 UTC | |
Re: Capture PID from child process on Windows.
by antirice (Priest) on Nov 08, 2005 at 22:04 UTC | |
Re: Capture PID from child process on Windows.
by ikegami (Patriarch) on Nov 08, 2005 at 22:05 UTC | |
Re: Capture PID from child process on Windows.
by Amar (Sexton) on Nov 09, 2005 at 12:42 UTC |