RE: error on windows with commands.getstatusoutput

2008-12-31 Thread Lee Harr
Anyhow, I've replaced it with this: from subprocess import Popen, PIPE, STDOUT p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True) output, unused = p.communicate() status = p.returncode Does that look more

Re: error on windows with commands.getstatusoutput

2008-12-28 Thread Pierre Bourdon
The commands module is Unix only. See its documentation : http://docs.python.org/library/commands.html On Sun, Dec 28, 2008 at 10:03 PM, Lee Harr miss...@hotmail.com wrote: My application is trying to start twistd in a cross-platform way. Unfortunately, it works fine on my linux system, but I

RE: error on windows with commands.getstatusoutput

2008-12-28 Thread Lee Harr
cmd = '%s -y %s -l %s' % (conf.twistd, conf.tztac, conf.twistdlog) status, output = commands.getstatusoutput(cmd) The commands module is Unix only. See its documentation : http://docs.python.org/library/commands.html Ah. Doh! I was going back and forth between all of the different ways to