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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...