Linux shutdown command

Gilbo

Storage is cool
Joined
Aug 19, 2004
Messages
742
Location
Ottawa, ON
I know I can reboot a computer at a specific time by typing:
Code:
shutdown -r 17:30

The thing I'm curious about is that the command doesn't return me to the console, so I want to hit CTRL+C and exit. This seems to me to not be the "proper' way, since it aborts the shutdown. Is there a better way?

I don't want to have to keep a terminal window open on my local computer all day. I know about using a detached screen, but is there a simpler way?
 

Fushigi

Storage Is My Life
Joined
Jan 23, 2002
Messages
2,890
Location
Illinois, USA
Does Linux support adding an ampersand to the end of a command to submit it as a separate job/process? If so, "shutdown -r 17:30 &" ought to work.

(I used to do this back in the '80s when testing software on DEC Ultrix & IBM CPIX Unix variants.)
 

Mercutio

Fatwah on Western Digital
Joined
Jan 17, 2002
Messages
22,297
Location
I am omnipresent
You can CTRL-Z and then type bg to background the task.
Or you can do

shutdown -r 17:30 &

And start the task in the background in the first place.
 
Top