When I start a process in background in a terminal and some how if terminal gets closed then we can not interact that process any more. I am not sure but I think process also get killed. Can any one please tell me how can I detach that process from my terminal. So even if I close terminal then I can interact with same process in new terminal ?
I am new to unix so your extra information will help me.
You might also consider the
screencommand. It has the “restore my session” functionality. Admittedly I have never used it, and forgot about it.Starting the process as a daemon, or with
nohupmight not do everything you want, in terms of re-capturing stdout/stdin.There’s a bunch of examples on the web. On google try, “unix screen command” and “unix screen tutorial”: