I have a process currently occupying a terminal
]$ command some_argument
I want to exit from the terminal and go home, but in the mean time I don't want to kill this running process.
For the above running process, I want to achieve something like the following:
]$ nohup command some_argument >& logfile &
Best Answer
Disowning the process and redirecting STDOUT from an already backgrounded process isn't feasible for most users. This SO answer covers the topic pretty well.
Disassociating the process from the current shell isn't so hard: you're looking for
disown
. From the manpage:If you want to learn more about what
nohup
anddisown
actually do, you can check out this question. (disclaimer: shameless self-promotion)