Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm loging via putty (SSH) to server on which execute my webserver program. With CTRL+Z and bg commands is webserver running on background but if I logout, the process is terminated. How can I prevent the termination after logout? Operation system on server is FreeBSD.

share|improve this question

migrated from Nov 2 '12 at 14:34

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

You can use nohup when starting, or you can use disown (in Bash or ZSH) interactively:

% run_long_script
# Ctrl-Z
% bg
% disown
share|improve this answer

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.