> 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
>> 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 wa
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 wrote:
>
> My application is trying to start twistd in a cross-platform way.
>
> Unfortunately, it works fine on my linux system, but I do not
> have w