[ubuntu-uk] Scheduling a reboot of Ubuntu?
sam_toogood at athsoc.org.uk
Mon Jun 15 13:02:34 BST 2009
Alex Birchall wrote:
> I'd like to schedule a reboot of my Ubuntu server.
> When I type sudo crontab -l at the prompt, the following is displayed:
> #m h dom mon dow command
> 40 12 * * 0-7 eprints reboot
> As I understand it, this should mean that at 40 minutes past 12 each day
> the user eprints will issue the command reboot.
> The problem is, nothing appears to be happening.
> Do I need to specify the user?
> Should the entries be separated by spaces, or tabs?
> Any advice gratefully received.
> Best regards,
> Alex Birchall
> Library Systems Manager
> The Sheppard Library
> Middlesex University
> The Burroughs
> London NW4 4BT
> Tel: +44 (0)20 8 411 5235
> Mob: 07765 237 570
no, you shouldn't specify the user in the crontab entry. Each user has
their own crontab. You can specify the user using 'crontab -u $user'.
More information about the ubuntu-uk