When you have an unlimited internet connection, you happen to download many file over internet. And you let your computer turn on for a long time. Well it’s better for you to schedule your computer to shutdown at specific time when you estimated the download would be complete. For this though I use crontab.

scheduling shutdown daily

type this in your konsole

#crontab -e

it will open up a file, fill the file with this command

0 20 * * * /sbin/shutdown -h now

after that press esc then type :wq to get back to konsole (we are using vim, so I hope you are familiar with it). At the example above, I scheduled the computer to shutdown at 20:00 (24:00 hours format). You just have to wait till 8 pm and then your computer will be shutdown automatically. There are other examples also, like this

this is an example of cron file
#run five minutes after midnight
5 0 * * * * /sbin/shutdown -h now

#run at 2.15pm on the first day of every month
15 14 * * /sbin/shutdown -h now

you can get more detailed information by typing

$ man 5 crontab

or

$ man crontab

and you can study more about the use of crontab there.

One Response to “Scheduling shutdown in linux”

  1. andy said

    boss, contohin donx. misalnya saya mo shutdown komputernya pada hari minggu 22 Juni 2008, jam 23:59.
    sorry neh masih newbie banget.
    thx

Leave a Reply