Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?

Replies are listed 'Best First'.
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 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-12-04 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (68 votes). Check out past polls.