error on windows with commands.getstatusoutput

L

Lee Harr

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 windows, and I am trying to debug this remotely on a
system I never use :eek:(

Anyhow, here is the error I am getting:

cmd = '%s -y %s -l %s' % (conf.twistd, conf.tztac, conf.twistdlog)
status, output = commands.getstatusoutput(cmd)



Error code: 1
Command: C:/Python25/Scripts/twistd.bat -y tzmud.tac -l var/log/twistd.log
Output:
'{' is not recognized as an internal or external command,
operable program or batch file.


Apparently, the Command works fine from the command line.


So...

Can I run a .bat file on windows with getstatusoutput?

Anyone recognize this kind of error?


Thanks for any assistance.


_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/events.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top