Hello.
I'd like to know how to make a simple restarter using cron. I made something like this:
"* * * * * root home/..(full path)/file"
But it doesn't work. How can I do that or how to make restarter of the application in other way?
Hello.
I'd like to know how to make a simple restarter using cron. I made something like this:
"* * * * * root home/..(full path)/file"
But it doesn't work. How can I do that or how to make restarter of the application in other way?
Presuming you mean:
* * * * * /full/path/to/script.sh
then that should be ok. What do you mean by 'it doesn't work'?
Using cron for this is a bit gross though as it will contribute towards the system beating.
A while loop with a sleep achieves the same thing without the beating.