PDA

View Full Version : shutdown Ubuntu after a preset period of time?



hhtmp88
February 1st, 2010, 05:04 AM
Dear all,

Are there any applications that can let me set a preset period of time, say 1.5hours,
-> and when being run, Ubuntu will be shut down automatically ?

Thanks for any kind of help!
Rgds,

hemimaniac
February 1st, 2010, 05:44 AM
you could write a small bash script, or simply open a terminal
screen -S shutdown
sudo shutdown -h 90 <can be minutes to count or 13:30 for example as a time
ctrl + a - d to leave the screen and leave the shutdown running

hhtmp88
February 1st, 2010, 05:54 AM
Thanks hemimaniac (http://ubuntuforums.org/member.php?u=995859)!

will try it out!

Rgds,

hhtmp88
February 7th, 2010, 04:13 AM
you could write a small bash script, or simply open a terminal
screen -S shutdown
sudo shutdown -h 90 <can be minutes to count or 13:30 for example as a time
ctrl + a - d to leave the screen and leave the shutdown running

Hi hemimaniac!

How can I make a shortcut on the desktop for this command,
-> so that I do not need to type the command every time I want to execute it?

Thanks!

hhtmp88
February 12th, 2010, 09:07 AM
Any News?

Thanks for any kind of help!
Rgds,