Hello , I need to create a crontab job , to reboot my server at 23:00 every day "is a test". I use this process
Crontab -e
Add , the following line .
00 23 * * * reboot
:wq
, bot this process not work , who about that ?
JOSE PEREZ
On Wed, July 5, 2006 12:11 pm, Jose Miguel Perez wrote:
Hello , I need to create a crontab job , to reboot my server at 23:00 every day "is a test". I use this process
Crontab -e
Add , the following line .
00 23 * * * reboot
:wq
, bot this process not work , who about that ?
Try using full path (/sbin/reboot).
On Wed, 5 Jul 2006 at 12:11pm, Jose Miguel Perez wrote
Crontab -e
Add , the following line .
00 23 * * * reboot
:wq
, bot this process not work , who about that ?
AFAIK, only the console can use 'reboot' or 'poweroff'. Try putting '/sbin/shutdown -r now' in root's crontab.