crontab and reboot
Tim Henderson
bizdev at pwnspeak.com
Thu Nov 25 18:57:08 UTC 2010
> Had a look at man for crontab(1) and crontab(5). Looks like you need
>
> 0 */4 * * * root shutdown -r now
>
> Suggest you have a look at these man files and see if you agree with me!
>
This is the correct format. However, I would suggest always using the
full path to binaries and scripts when calling from crons (or scripts).
For instance:
1 */4 * * * /sbin/shutdown -r now
or
1 */4 * * * /sbin/reboot
Tim H.
More information about the ubuntu-users
mailing list