Hi
I have a job that starts in the crontab every minute – it only runs for 2 sec. – but in some rare cases it gets stuck. – this means that the process never dies, and this in turn means that it can’t start next time – and that means that the job stops working.
The only think to do is to kill the process, so that it can start up again.
I need to make a script that does this – the only thing the script should do is to kill the process IF it has been running for more then 2 hours
Hope some one can help
I have a job that starts in the crontab every minute – it only runs for 2 sec. – but in some rare cases it gets stuck. – this means that the process never dies, and this in turn means that it can’t start next time – and that means that the job stops working.
The only think to do is to kill the process, so that it can start up again.
I need to make a script that does this – the only thing the script should do is to kill the process IF it has been running for more then 2 hours
Hope some one can help