Re: [Tutor] Run a cmd program

2005-08-09 Thread Kent Johnson
oliver wrote: > On 8/9/05, Øyvind <[EMAIL PROTECTED]> wrote: > >>Thanks a lot. However, it didn't work. I got an error stating something >>along: "Is not recognized as an internal or external command, executable >>program or .. file" (I don't know how to translate the word . to >>english).

Re: [Tutor] Run a cmd program

2005-08-09 Thread oliver
On 8/9/05, Øyvind <[EMAIL PROTECTED]> wrote: > Thanks a lot. However, it didn't work. I got an error stating something > along: "Is not recognized as an internal or external command, executable > program or .. file" (I don't know how to translate the word . to > english). That looks like a

Re: [Tutor] Run a cmd program

2005-08-09 Thread Kent Johnson
Øyvind wrote: > Hello. > > I need to run a program > (http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp) > thru Python. It is normally run such as "uptime AUTO-SRV-001 /s > /d:04/01/2005" in the command prompt. Is it possible to run a already > compiled exe file in Pyth

Re: [Tutor] Run a cmd program

2005-08-09 Thread Øyvind
Thanks a lot. However, it didn't work. I got an error stating something along: "Is not recognized as an internal or external command, executable program or .. file" (I don't know how to translate the word . to english). But, when I looked in the manual about the commands module, I found th

Re: [Tutor] Run a cmd program

2005-08-09 Thread Adam Bark
>>> import commands >>> commands.getoutput("uptime AUTO-SRV-001 /s /d:04/01/2005") that should do itOn 8/9/05, Øyvind <[EMAIL PROTECTED]> wrote: Hello.I need to run a program(http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp)thru Python. It is normally run such as "upti