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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060705/beb61380/attachment-0002.html>
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).
I try to, and not work !!! -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Marko A. Jennings Sent: Wednesday, July 05, 2006 12:16 PM To: CentOS mailing list Subject: Re: [CentOS] Problem with crontab On Wed, July 5, 2006 12:11 pm, Jose Miguel Perez wrote:> Hello , I need to create a crontab job , to reboot my server at23: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). _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
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. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Yes the command need the full path, Thank -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Joshua Baker-LePain Sent: Wednesday, July 05, 2006 12:21 PM To: CentOS mailing list Subject: Re: [CentOS] Problem with crontab 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. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos