27
20
I have the same question as here but even beyond that.
If I logout/exit the SSH connection, I need my program running in background.
Before exit, I type bg
and jobs
to check background running task, but after exiting SSH, the program doesn't run, it closes when I close the SSH window.
What can I do if I want my program still running after closing the SSH window? I do use nohup
screen
but it also doesn't work, or am I missing something?
Welcome to Super User! Please don't put your answer into the question. Post it as an answer below once you can (in about 7 hours) using the Answer your question button. Thank you. (Also note that there's no need to add
<br/>
s to your post. Just make paragraphs as needed. And while you're at it, please use proper capitalization. It makes your posts easier to read.) – slhck – 2013-08-15T10:10:35.303BTW no need to use
– justbrowsing – 2013-08-15T10:38:59.760bg
ornohup
when usingscreen
. Also this question is related.you make check this thread @ stack overflow http://stackoverflow.com/questions/285015/linux-prevent-a-background-process-from-being-stopped-after-closing-ssh-client
– Ashildr – 2013-08-15T10:48:50.537