title: How to get the process ID to kill a nohup process?
body: <p>I'm running a nohup process on the server. When I try to kill it my putty console closes instead.</p>
  
  <p>this is how I try to find the process ID:</p>
  
  <pre><code>ps -ef |grep nohup 
  </code></pre>
  
  <p>this is the command to kill</p>
  
  <pre><code> kill -9 1787 787
  </code></pre>