title: Unable to retrieve nohup process using fg
body: <p>I was running a process from terminal in an <code>SSH</code> session and started the process in background with <code>nohup</code> and disconnected.</p>
  
  <p>After some time I log back on the server and see that process is still running but cannot bring it back to foreground with current <code>bash</code> terminal since it was not the one which started it. I think the process now belongs to <code>init</code> as the shell which started the process exited when I exited from the first <code>SSH</code> session.</p>
  
  <p>Now, how do I interact the process that I started? I mean it's not that I want to kill it or something, but what if the process takes user input from time to time and now it's waiting for one?</p>