title: Kill process by pid file
body: <p>I try to kill a process by pid file:</p>
  
  <pre><code>kill -9 $(cat /var/run/myProcess.pid)
  </code></pre>
  
  <p>The pid file contains the process number. However executing the kill gives me no stdout and the processes is still alive. But this works:</p>
  
  <pre><code>kill -9 PID
  </code></pre>
  
  <p>What is wrong with the first kill command? Does it fail to extract the PID from the file?</p>
  
  <p>Example content of pid file:</p>
  
  <pre><code>5424
  </code></pre>
  
  <p>and </p>
  
  <pre><code>kill -9 5424
  </code></pre>
  
  <p>works.</p>