in reply to Process id
One way is to do a fork/exec which is all system really is anyway:
my $pid = fork (); die "Fork failed!\n" unless defined $pid; if ( $pid == 0 ) { # convert kid to java process exec( $path_to_java_process ); exit 0; # for clarity, we don't actually get here } # in the parent $pid holds PID of child which is (now) the java proces +s
cheers
tachyon
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Process id
by tilly (Archbishop) on Dec 07, 2004 at 16:03 UTC |
In Section
Seekers of Perl Wisdom