Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: how to automatically kill a program by itself?

by ikegami (Patriarch)
on Feb 16, 2009 at 07:22 UTC ( [id://743989]=note: print w/replies, xml ) Need Help??


in reply to how to automatically kill a program by itself?

You could also use a watchdog if you don't trust the application to end itself.

watchdog -t 7200 script

Update: Fixed fork error check.
Update: Added command line options and moved code into its own (CUFP) node.

Replies are listed 'Best First'.
Re^2: how to automatically kill a program by itself?
by poolpi (Hermit) on Feb 16, 2009 at 15:28 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found