Keep Process Running after Quitting NetCat

0

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?

John

Posted 2013-08-27T22:29:48.790

Reputation: 13

Answers

0

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.

piernov

Posted 2013-08-27T22:29:48.790

Reputation: 1 796

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 – 2013-08-28T01:38:44.317