title: Executing a shell script in background with php
body: <p>I need to execute a shell script. The catch is I want to do this</p>
  
  <pre><code>$Command = "nohup cvlc input --sout '#transcode {vcodec=h264,acodec=mp3,samplerate=44100}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8083/".output"}' &amp;";
  $str = shell_exec($Command);
  </code></pre>
  
  <p>I dont want it to wait till the command is finished, i want it to run in a background process.
  I do not want another php thread as it will timeout the command can take up to 3 hours to finish.</p>