I have an fcrontab entry for waking up one of my servers on a regular basis. My entry is as follows:-
# Restart server at 07:30 each day
30 7 * * * /home/fcronuser/scripts/wol_server.sh
The script wol_server then has your commands etc for carrying out the wake on lan.
You might be able to put the command directly into the fcrontab line as long as it is simple. I use a script as I am also testing that the server has woken up after a period by using pings and if not then putting a message into the logs.
great, thanks for this link!
That makes more sense to me now
the root cron is the root.orig ?
I think I can put that one line back in after an update too. I would like to change as little as possible in IpFire so as not to be unnecessarily. to make a mistake.
TO is to
So if I put in the root.orig at the end and then restart fcton the sh file should run.
The easiest way is calling fcrontab -e. This starts an editor ( default vi ) to change the fcrontab file, exit with save restarts fcrontab with the new contents ( like fcrontab -z ).
The wiki article about nano shows how to change the default editor from vi to nano.