Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I automatically shutdown the system after a certain customizable time?

share|improve this question
add comment

3 Answers

up vote 10 down vote accepted

Open a terminal window and type in:

shutdown -h +60

and just replace 60 with whatever number of minutes you want to take.

More info here:

http://ubuntuforums.org/archive/index.php/t-473173.html http://www.linux.org/lessons/beginner/l5/lesson5a.html

share|improve this answer
    
The -P parameter (power off) seems to be a good idea too. –  htorque Jan 2 '11 at 23:28
    
shutdown +m 60 doesn't work for me. gives me an error message and says that there's an invalid time value. –  NES Jan 3 '11 at 14:26
    
I thought it was odd... it shouldn't be "+m 60", it should be "+60" (or maybe more like "-h +60". The bottom of this page seems to know how it works: linux.org/lessons/beginner/l5/lesson5a.html. –  Daniel Jan 3 '11 at 19:04
    
"shutdown -P 1" - works well and shuts down the system in 1 minute, no time unit needed. –  n3rd Aug 2 '11 at 12:01
add comment
  • You can use gshutdown Install gshutdown
  • After installation it can be found under Applications → Accessories → GShutdown alt text
  • Also have a look at this method.
share|improve this answer
    
Can anyone say me why they down vote? –  karthick87 Jan 3 '11 at 6:11
    
i didn't down vote. But Gshutdown doesn't work smoothly here. When i choose shutdown it insteads log the user out? –  NES Jan 3 '11 at 14:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.