B
bsder
Hi,
Can anyone please tell me how to print a process ID (PID)?
Thanks
Sam
Can anyone please tell me how to print a process ID (PID)?
Thanks
Sam
bsder said:Can anyone please tell me how to print a process ID (PID)?
bsder said:Can anyone please tell me how to print a process ID (PID)?
bsder said:Hi,
Can anyone please tell me how to print a process ID (PID)?
Thanks
Sam
bsder said:I want to print a child process ID, not a script id.
bsder said:I want to print a child process ID, not a script id.
Thanks for the hints. Is there other way I can print the pid of thePaul said:Then why didn't you say that to begin with?
my $pid = fork();
if ($pid){
#in parent
print "Child's PID: $pid\n";
} else {
#in child
exec ('child_process.pl');
}
perldoc -f fork
perldoc -f wait
perldoc perlipc
Paul Lalli
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.