Find the answer to your Linux question:
Results 1 to 8 of 8
Is there a way like in windows to prevent shutdown with "shutdown -a" in linux...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Aborting Poweroff

    Is there a way like in windows to prevent shutdown with "shutdown -a" in linux

  2. #2
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    is there a solution

    Quote Originally Posted by vickey_20 View Post
    Is there a way like in windows to prevent shutdown with "shutdown -a" in linux


    is there a way to do that please someone please tell me....

  3. #3
    Linux 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?

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    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.

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    loosing acess means ?

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    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.

  7. #7
    Linux 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.

  8. #8
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    CNTRL +C = Abort

    Quote Originally Posted by MikeTbob View Post
    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.

    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....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...