in reply to How to see the processId of the process called by system command from perl
You can use a piped open to get the pid:
my $pid = open my $cmd, "-|", 'theCommand parms' or die $!;
On win32, you can use the return value from system1, ...:
my $pid = system 1, 'theCommand parms';
|
|---|