Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to run a command, gather its output and kill it after a specified time?

by JavaFan (Canon)
on Feb 15, 2012 at 15:44 UTC ( #953981=note: print w/ replies, xml ) Need Help??


in reply to How to run a command, gather its output and kill it after a specified time?

You already kill the external program. You then decide to kill the main program when that happens. If you don't want to die, then, well, don't.


Comment on Re: How to run a command, gather its output and kill it after a specified time?
Re^2: How to run a command, gather its output and kill it after a specified time?
by blindluke (Scribe) on Feb 15, 2012 at 18:36 UTC

    Thank you, JavaFan! Of course, moritz already gave the right suggestion, but I was as stubborn as the shell in question in not understanding what he said. :)

    My sincere thanks for the answer, and for having the necessary patience to repeat it for me.

    regards,
    Luke Jefferson

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-01 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls