You are not logged in.

#1 2009-10-24 15:27:36

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

[SOLVED]Script to make pc shutdown in X minutes like a television?

Hello, i'm sure there is a simple answer to this, but i couldnt figure anything out.  Isn't there a script or command i could input to make my pc shutdown in, for example, 1 hour?  I often fall asleep while watching something or listening to tunes and i don't want to leavet the pc on all night if i dont have to.

thanks!

Last edited by DrTankMC (2009-10-24 15:43:31)


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#2 2009-10-24 15:29:56

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: [SOLVED]Script to make pc shutdown in X minutes like a television?

shutdown -h +<delay in minutes>

so: shutdown -h +60 would be one hour

Last edited by Zeist (2009-10-24 15:31:38)


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#3 2009-10-24 15:30:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED]Script to make pc shutdown in X minutes like a television?

For example:

shutdown -h +60

shutdown -h 00:30

Edit: Zeist was too quick!

Last edited by loafer (2009-10-24 15:30:55)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2009-10-24 15:32:34

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED]Script to make pc shutdown in X minutes like a television?

so "shutdown -h +60" will force a shutdown in 60 minutes?  Hopefully without the need for sudo since i won't be conscious.

this is fantastic and simple, thanks!


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

#5 2009-10-24 15:43:14

DrTankMC
Member
From: Faifield County
Registered: 2009-03-18
Posts: 77

Re: [SOLVED]Script to make pc shutdown in X minutes like a television?

ahh ok it asks for sudo in the beginning...thanks alot!


Long live the Organization for the Organized!!!

Ich möchte die Tomatensuppe!

Offline

Board footer

Powered by FluxBB