title: Beanstalk/Pheanstalk not working in background
body: <p>I am having troubles in setting up Pheanstalk on Ubuntu server.
  I am relative new to programming, I have done all steps:
  - installed beanstalk with sudo apt-get install beanstalk
  - got pheanstalk from <a href="https://github.com/pda/pheanstalk/" rel="nofollow">https://github.com/pda/pheanstalk/</a></p>
  
  <p>And here is my code:
      
  
  <pre><code>require_once('pheanstalk_init.php');
  
  $pheanstalk = new Pheanstalk_Pheanstalk('127.0.0.1');
  
  $pheanstalk
  -&gt;useTube('testtube')
  -&gt;put(exec("cat ../uploads/databases/app_data/Filename.sql | sqlite3 ../uploads/databases/Filename.sqlite"));
  
  $job = $pheanstalk
  -&gt;watch('testtube')
  -&gt;ignore('default')
  -&gt;reserve();
  
  echo $job-&gt;getData();
  
  $pheanstalk-&gt;delete($job);
  </code></pre>
  
  <p>The problem is that it takes 4-5 mins to run this code and for some reason the exec command does not run in background.</p>
  
  <p>Any ideas on what am I doing wrong?
  Many thanks in advance!</p>