Launch command through popen on OpenShift
<p>When I launch this command through <strong>popen</strong></p>

<pre><code>try:
  os.popen("myCustomCmdHere")
except IOError:
  logging.error('Error on myCustomCmdHere')
</code></pre>

<p><strong>I don't have error but the command does not launch</strong></p>

<p>And when I launch myCustomCmdHere directly on Openshift console the command is right</p>

<pre><code>rhc ssh -a myApp
cd app-root/repo/myApp
myCustomCmdHere
</code></pre>

<p><strong>What I need to add in my code to use os.popen in Openshift ?</strong></p>

<p>Thanks</p>

<p>Try using the '&amp;' to start a separate process and send to background.  I use this for python  3.3 on Openshift. </p>

<pre><code>import subprocess
subprocess.Popen(['myCustomcmdHere &amp;'])
</code></pre>

<p>Or this</p>

<pre><code>os.system("myCustomcmdHere &amp;")
</code></pre>

python python-2.7 openshift popen