[Tutor] execute an OS command, get the output
Hugo González Monteverde
hugonz-lists at h-lab.net
Sat Mar 11 02:50:18 CET 2006
Hi Terry,
> abc = executeit(commandline) or
> executeit(commandline, abc)
>
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
Hope that helps,
Hugo
More information about the Tutor
mailing list