laziness, impatience, and hubris | |
PerlMonks |
Re^2: Killing subprocess in windowsby LanX (Saint) |
on May 20, 2021 at 21:36 UTC ( [id://11132814]=note: print w/replies, xml ) | Need Help?? |
> instead of your unusual syntax, you can try to fork could you please show me how? From the docs:
fork() creates a new process by duplicating the calling process. I don't wanna replicate the Perl script but spawn a PS window. > tail and grep for Windows does this offer the -f option? I don't think so. > is File::Tail usable on Windows ? File::Tail seems overkill, and like the title suggests there might be problems on Win get-content -wait is a built-in in all modern Win versions > You can also use Win32::Process to create and kill the subprocess. That's a very good idea, thanks! :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|