Pages

Monday, July 26, 2010

How to background and nohup (run after terminal close) a running process

  1. run it in the foreground
  2. stop it (CTRL+Z)
  3. disown it so that it won't be closed when you close your shell (disown -h %jobid)
  4. restart the job in the background (bg %jobid)

No comments:

Post a Comment