Hi David, Many thanks, that worked!
Alex -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Restall - System Administrator Sent: 30 November 2009 09:58 To: Alex Birchall; [email protected] Subject: Re: [ubuntu-uk] Cron jobs not running? Hi Alex, > Hello, > > I should be most grateful for any tips on how to get cron jobs to run on > a Hardy Heron 8.04 server. > > Basically, I want to reboot my server at a preset time once a week. > Currently, when I am logged in as root, crontab -l produces the > following: > > DISPLAY=:0.0 > # m h dom mon dow command > 30 09 * * 0-6 bash /sbin/reboot You want your system to reboot at 09:30 every day ? Try the following :- 30 09 * * 0 /sbin/init 6 This should reboot at 09:30 every Sunday. Regards, David ubuntu/uk-2009-11-30.tx ubuntu-uk [email protected] +----------------------------------------------------------------------- -----+ | Dave Restall, Computer Nerd, Cyclist, Radio Amateur G4FCU, Bodger | | Mob +44 (0) 7973 831245 Skype: dave.restall Radio: G4FCU | | email : [email protected] Web : Not Ready Yet :-( | +----------------------------------------------------------------------- -----+ | Motorized vehicles only. | +----------------------------------------------------------------------- -----+ > > For the command to run, I have also tried leaving out "bash" and having > merely "./sbin/reboot" and "reboot". But nothing works. > > I added the line "DISPLAY=:0.0" as it was a suggestion I found on the > web when I googled this problem. > > What am I missing, if anything? > > Regards, > > Alexander J Birchall > Library Systems Manager > Middlesex University > The Sheppard Library > The Burroughs > London NW4 4BT > > Tel 0208 411 5235 > > > > > -- > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ > -- [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
