Think about Loose Coupling | |
PerlMonks |
Re^2: How to run a command, gather its output and kill it after a specified time?by blindluke (Hermit) |
on Feb 15, 2012 at 14:56 UTC ( [id://953969]=note: print w/replies, xml ) | Need Help?? |
I want the script (my_stubborn_shell) to be killed after the timeout (as this script does not exit gracefully), but then, when it's killed, I want to have the output that my_stubborn_shell sent to STDOUT, or an indication that it did not print anything. regards,
In Section
Seekers of Perl Wisdom
|
|