Results 1 to 2 of 2

Thread: Remote suspend via ssh

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    London, UK
    Beans
    97
    Distro
    Ubuntu 9.10 Karmic Koala

    Question Remote suspend via ssh

    I'd like to be able to remotely suspend a server, to which I have ssh access with root privileges, but if I run "pm-suspend", the process runs (and the server does go into suspend) but the ssh session hangs, presumably because it's lost connection and it doesn't know what to do. How can I make it run the process and disconnect, regardless of whether the process executes successfully or not?

  2. #2
    Join Date
    Jan 2006
    Location
    Denver, CO
    Beans
    63
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Remote suspend via ssh

    Perhaps run the suspend command from an "at" job you submit for, say, five minutes from now? You could submit it and then disconnect.

    You could also probably just run a shell script that does "sleep 30" as its first command, run it in the background and disconnect.

Tags for this Thread

Bookmarks

Posting Permissions

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