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

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.

1 Answer 1

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.