michaelc Posted October 4, 2006 Share Posted October 4, 2006 I don't like to leave my computer on all the time, but sometimes I have to for a while whilst I sleep. Is there a way to shutdown my computer every morning at 4 am autmatically?? I'm using MD2006. Link to comment Share on other sites More sharing options...
skinky Posted October 4, 2006 Share Posted October 4, 2006 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 More sharing options...
ianw1974 Posted October 5, 2006 Share Posted October 5, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now