Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: error on windows with commands.getstatusoutput

Reply
Thread Tools

Re: error on windows with commands.getstatusoutput

 
 
Pierre Bourdon
Guest
Posts: n/a
 
      12-28-2008
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 <(E-Mail Removed)> 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 windows, and I am trying to debug this remotely on a
> system I never use (
>
> 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/win...ve/events.aspx
> --
> http://mail.python.org/mailman/listinfo/python-list
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows error 126 loading a dll on windows 2000 luis Python 1 07-25-2007 07:16 PM
!Windows Live Mail replace Outlook Express on Windows XP and Windows Mail on Vista... Max Burke NZ Computing 8 05-18-2007 12:10 AM
Windows Explorer error using Windows 2000 Rod Computer Support 5 05-23-2006 06:53 PM
Windows XP keeps restarting automatically before system finishes booting. GET ERROR: "We apologize for the inconveience but windows was not shutdown properly...." DaWurm Computer Support 3 11-15-2003 11:29 PM



Advertisments