|There's more than one way to do things|
Killing subprocess in windowsby LanX (Sage)
|on May 20, 2021 at 15:45 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
I'm using this to start a tail -f like window on Win to visualize logged output of a background process
problem is I need to be able to kill the sub-process again when the logfile stopped being open for writing (i.e. isn't locked anymore)
I though about sending a 'kill', but Perl doesn't seem to give me the PID.
My workaround for the time being is to rename the logfile, b/c powerhell will terminate the tail then, but my boss doesn't want that (though I could rename it back)
Any better ideas, there must be a way to kill a sub-process...