On Fri, 10 Mar 2006, [ISO-8859-1] Hugo Gonz?lez Monteverde wrote:
> Looks like you are looking for the commands module, it provides:
>
> getstatusoutput( cmd)
>
> getoutput( cmd)
>
> getstatus( file)
>
>
> Which do exactly what tou want. Take a look at the docs at:
>
> http://python.active-venture.com/lib/module-commands.html
Thanks, Hugo. Unfortunately, it doesn't work for me; for example:
>>> print getoutput("dir")
'{' is not recognized as an internal or external command,
operable program or batch file.
The docs say:
Availability: Unix.
And I'm on Windows/XP, so I'm guessing that although the module's there,
it just doesn't work on Windows.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor