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 am using NetCat on Windows 7 Professional to connect to my linux machine at home. I need to run a process and make it keep running after I close NetCat (Cmd Console).

However when I close and then connect and check the Process List my Process isn't running. Is there any way I can keep it running after I close NetCat?

share|improve this question

If you want to keep the process running when the terminal which has started it closes, you should detach it from the shell and ignore signals. You can do that by using the & character at the end of your command-line, it runs the process in background, and by using nohup at the beginning, which catch disconnect signals and hide them to the process. Alternatively, you can use detach, which lets you regain control over the process when you reconnect. screen can also be used for this purpose.

share|improve this answer
nohup doesn't work. I tried detach as well but same thing happened. Screen gives me an error that I am not in a Terminal Session. – John Aug 28 '13 at 1:38

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.