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.
In reply to Re: how to automatically kill a program by itself?
by ikegami
in thread how to automatically kill a program by itself?
by lightoverhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |