Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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