I'd like to set up a cron job that runs every 5 mins does the following:
I need help with the if syntax that will do what I'm looking to do, and the crontab entry.
I think for the crontab entry I need to use:
is that right?
what's the code I need to put in my checkvm.sh script?
Code:
if "qm status 101" not equal to "running" then execute "qm start 101"
I need help with the if syntax that will do what I'm looking to do, and the crontab entry.
I think for the crontab entry I need to use:
Code:
*/5 * * * * checkvm.sh
is that right?
what's the code I need to put in my checkvm.sh script?