Results 1 to 8 of 8
Is there a way like in windows to prevent shutdown with "shutdown -a" in linux...
- 04-03-2009 #1
Aborting Poweroff
Is there a way like in windows to prevent shutdown with "shutdown -a" in linux
- 04-04-2009 #2
- 04-04-2009 #3Linux Newbie
- Join Date
- Sep 2004
- Location
- UK
- Posts
- 160
Try running "man shutdown" in a terminal
I think the "-c" option is the one you want.In a world without walls and fences, who needs Windows and Gates?
- 04-04-2009 #4
You might lose shell access, it's been so long since I have tried this I don't remember. So a simple Ctrl-C will kill the program. If you want to keep the shell access, tell it to fork with "&" added to the end of the command. Then you will be able to cancel with "shutdown -c."
Someone please correct me if I am wrong.I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 04-05-2009 #5
- 04-05-2009 #6
That just means that the terminal will be busy shutting down and you won't be able to type any commands while it is doing this.
That's what the ampersand "&" is there for, it forces the command to run in the background and returns the command line to you in case you want to run more commands.I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 04-06-2009 #7Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
To interrupt the shutdown process can leave your system in an unusable state. You might want to run "init 3" if you do so to return to a normal state hopefully.
- 04-06-2009 #8
CNTRL +C = Abort
Hey people i finally accomplished aborting poweoff. One needs to press CNTRL +C to kill the poweroff process. But I m still left with some doubts , some are pointing that one can losse access in this process but that does not seems to be the problem with me i.e I still have access to the terminal and can to everything possible....


Reply With Quote
