title: Get running status of python program in PHP
body: <p>Hi I am doing a project with Raspberry Pi. I make a python program which have an endless loop inside. I also make a PHP website which call to that python program, make it run in background by this way:</p>
  
  <pre><code>$call = "sudo python ../python/readver12.py &gt; /dev/null 2&gt;&amp;1 &amp;";
  shell_exec($call);
  </code></pre>
  
  <p>Everything seem okay, but I don't know how to get the status of my python program is running in background or not, and make it available in my website with PHP ?</p>