For the archives - solution posted at
http://stackoverflow.com/questions/2861548/how-to-determine-subprocess-popen-failed-when-shelltrue
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, May 17, 2010 at 1:45 PM, wrote:
> Windows version of Python 2.6.4: Is there any way to determine if
> subprocess.Popen() fails when using shell=True?
>
> Popen() successfully fails when shell=False
>
import subprocess
p = subprocess.Popen( 'Nonsense.application', shell=False )
>
Windows version of Python 2.6.4: Is there any way to determine if
subprocess.Popen() fails when using shell=True?
Popen() successfully fails when shell=False
>>> import subprocess
>>> p = subprocess.Popen( 'Nonsense.application', shell=False )
Traceback (most recent call last):
File "", line 1,