I have used the following code
my $pid = fork; unless($pid){ exec('script 2>output.log'); } print "Child Process Id:$pid\n";
In the above example got the process id of the child process but not the process which is executed the command
How can I take the process id of the process which is running the actual application?
In reply to Re^4: Obtain the child process id in perl
by Anonymous Monk
in thread Obtain the child process id in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |