Moving already running process under nohup.
Have you ever ran into a situation, where you have launched a long running process and you forgot to run it under nohup. Here is a workaround to move already running process under nohup.You can do this using bash job control.
Steps:
- First stop or pause the process using CtrlandZ.
- Then type bgin terminal to move that process in background.
- Last step is to remove process entry from table of active jobs. You can do this with following command
disown -h
You can mention specific job id after -h option to remove particular entry from active jobs table.
