system does not return the PID when used in your way, but you can simulate start by using system(1, ...):
my $pid = system(1, "cmd /c powershell gc -tail 10 -wait $logfile" );
That way, you can kill it. See perlport on the form system(1, ...).
In reply to Re: Killing subprocess in windows
by Corion
in thread Killing subprocess in windows
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |