shutdown in 60 minutes?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

shutdown in 60 minutes?

#1 Post by hanzf »

Hello,

I want to tell my puppy computer to keep running for a given time, e.g. another 60 minutes, and then shutdown.

I found this command:

Code: Select all

shutdown +60
but the puppy commandline tells me:

Code: Select all

bash: shutdown: command not found
The command

Code: Select all

halt
causes an immediate shutdown, but the +60 parameter has no effect.

How can I tell my computer to shutdown in 60 minutes?

thank you
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#2 Post by Mike Walsh »

Hi, hanzf.

I've just recently discovered how to do this myself.....and already I've forgotten where I found it..!

Anyway, try this for size:-

Code: Select all

sleep 60m && wmpoweroff &
That will give you 60 minutes of run-time from the moment you execute the script....then *click*; off she goes.

You can adjust this to any amount of time you want, by simply altering the '60m' to any number you require (in minutes). Might even work with 'h' for hours, too.....haven't tried that yet.

I've got two scripts saved in their own directory in /root; one for 30 minutes, and one for 60 minutes. To execute the one I want, I just click on it.

Let us know how you get on with it. This should work for any Pup.

BTW: Nice to run into someone else with an Athlon 64! How do you find it? I had a 3200+ for several years, before I 'upgraded' to an X2 (which fits in the same socket, of course). Puppy ran extremely well on the single-core; it just runs even better with the X2..!


Regards,

Mike. :wink:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#3 Post by bigpup »

If it is just going to be running with no activity.
Attachments
capture17623.png
(26.36 KiB) Downloaded 110 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Post Reply