michaelc Posted October 4, 2006 Report 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. Quote Link to comment Share on other sites More sharing options...
skinky Posted October 4, 2006 Report 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? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 5, 2006 Report 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.