Let's say I've ssh'd into my box and decided to run a long job, but have forgotten to run that job inside screen. Is there anything I can do to stop the job from terminating when the ssh session closes, after the job has already been started?


You can background ctrl-z the process so it will have a jobspec and then disown job spec. Then the job is no longer attached the terminal so when you exit the job continues.

  • I am assuming your shell is bash. If not something equivalent may still exist. – johnshen64 Apr 27 '12 at 4:05
  • Yes it is, and thanks, this was exactly what I was looking for. – eltommo Apr 27 '12 at 4:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.