title: why subprocess.Popen cannot work when it run under service/init.d?
body: <p>I have these code in a file "code.py"</p>
  
  <pre><code>param_list = ['/usr/bin/someapp.bin','-q','/usr/bin/someparam.conf','/tmp/output.pdf']
  p = subprocess.Popen( param_list , shell=False, stdout=subprocess.PIPE )
  p.communicate()
  </code></pre>
  
  <p>the someapp.bin will produce a file and output as /tmp/output.pdf
  when i run under the code.py under terminal shell , it works ,
  and the user is : <strong>ubuntu</strong></p>
  
  <p>but when i try run it as a service using user : <strong>service_user</strong>
  and make sure the /tmp folder is writable and accessible for anyone.</p>
  
  <p>my question is why it just cannot generate as it suppose to be under
  service , my suspect is permission issue but i just cannot get it to
  work and need some advice and help , thanks.</p>