Find the answer to your Linux question:
Results 1 to 6 of 6
Does anyone know how to run a GUI X app remotely in background - that persists even when logged out? Basically, I ssh into university to run my X program ...
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208

    HELP: running process in bg and logout and persist... woes :S



    Does anyone know how to run a GUI X app remotely in background - that persists even when logged out?

    Basically, I ssh into university to run my X program am developing for my project. However I need to leave it running for over 24 hours, maybe days on end preferably. I left it, however it auto-loggs out after 6 hours of idle keyboard input (or something like that).

    I remember something about running a process (can it be X too?) in background, and then log out, and it's still running...

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,039
    You might want to investigate GNU Screen.

  3. #3
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208
    Screen is very good. Thanks for the advice.

  4. #4
    Linux Newbie
    Join Date
    Mar 2005
    Location
    Romania
    Posts
    186
    Alternatively you can run an application from terminal and add '&' at the end.

    Example (this is how I download large files):
    Code:
    wget <link> &
    The process will be run in background until stopped (or until if finishes) even if you log out.
    You can only be young once. But you can always be immature.

  5. #5
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    In bash,
    Code:
    nohup <command> &
    will run a command in the background that doesn't get stopped by the SIGHUP from when you log out.

  6. #6
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    208
    Ah, that also works.. plus no need to install screen. Excellent!

Posting Permissions

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