TechpulpQuestions
How to avoid killing of process after logging out of SSH or telnet session
Generally when I close the terminal all background processes which are attched to the terminal are closed when I logout or close it. How can I keep the processes running even after closing the terminal or logging out of telnet or SSH connection?


about 2 years ago
Run the command in the background with a trailing “&” symbol, run “disown” and then close the terminal. Open another terminal and verify if the process is still running or not.
Like or Dislike:
0
about 2 years ago
If you want to make the current process to continue to run, you should first put the process in the background.
Press Ctrl+Z and then run “bg” command. This puts current process in the background.
Now run “disown” to make it run even after closing the terminal.
Like or Dislike:
0
about 2 years ago
Some times the command can be interactive and you would like to go to lunch. So by the time you come after having lunch, your telnet or SSH connection might have been timed out and may not respond at all.
In such cases, “screen” command helps a lot. As you can reattach to a background process again with a new terminal. It may be little difficult in the beginning but the effort is worth.
Like or Dislike:
0