Jump to content

Automated Shutdown


Recommended Posts

You could set a cron job to run at 4am.

 

You might first like to check the time that your system checks run. I think the system checks run at 4am.

 

Unfortunately I can't remember how to set a cron job. I used to use kcron which I see is no longer available in Mandriva 2006. Perhaps it has been replaced with drakcronat which installs in the menu under System > Configuration > Other > X Cron and At frontend.

 

Maybe someone who knows can shed some light on this?

Link to comment
Share on other sites

A nice easy way is to create a script with this:

 

#!/bin/bash
#
# This script shuts the computer down
#
halt

 

save that to a file called perhaps /etc/cron.daily/sysshutdown as shutdown and halt exist as commands, and then do this:

 

chmod +x /etc/cron.daily/sysshutdown

 

now your system will shut down each morning when the cron.daily jobs run around 4am.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...