Friday, December 21, 2012

What to do if nohup or disown does not work for you

When I ran some application under Linux I encountered some common problem causing my application to stop once I was closing remote terminal session. Searching gave me an advice to use nohup or disown commands so that the process output is redirected from your console. That was assumed to resolve my problem, however it didn't. After I had closed my terminal window the processes were terminated.
But what I did wrong (and probably you do as well) is that I ran all the commands from MC (aka Midnight Commander) shell. Since I used pure command line (no file managers or other mediator processes) I got the proper result. Hop it will help you.