i need to be able to reboot my system every hour. i tried the below:
iCal opens fine as scheduled, but the reboot command doens't.
assume it needs to be executed as root ? how can that be done automatically ?
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
27 * * * * open -a iCal
30 * * * * reboot
iCal opens fine as scheduled, but the reboot command doens't.
assume it needs to be executed as root ? how can that be done automatically ?
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
27 * * * * open -a iCal
30 * * * * reboot