dragon7
Vu+ Newbie
Hi!
I am looking for help setting a cron job so it does not work when i switch my box to standby.
It looks like this now:
*/4 * * * * touch /media/hdd/keepalive.log
and it does what it is intended for but I would like that it does not do it all the time and that the hdd gets some rest while the box is on standby.
I read that I need to use if or while to condition the job to work only when the box is active/on, but I have no clue how to do it.
Any help, please...
I am looking for help setting a cron job so it does not work when i switch my box to standby.
It looks like this now:
*/4 * * * * touch /media/hdd/keepalive.log
and it does what it is intended for but I would like that it does not do it all the time and that the hdd gets some rest while the box is on standby.
I read that I need to use if or while to condition the job to work only when the box is active/on, but I have no clue how to do it.
Any help, please...