2

Hello I just setup a ubuntu server running samba and I want it to shut down every night at 11PM.

This is what's in my crontab I'm using this command in crontab 30 9 * * * root shutdown -h now

Cron tab does seem to be on but its not running the command at the desired time.

Thanks in advance!

1 Answers1

2

Edit the system crontab:

sudo vi /etc/crontab

Add the following line to the bottom of the file:

0   23   *   *   *    root     shutdown -h now

Save the file (ZZ in vi). That should run the command "shutdown -h now" every night at 23:00.