[Tutor] Using Linux commands
David Rock
david at graniteweb.com
Wed Dec 10 11:12:14 EST 2003
* desiderata at softhome.net <desiderata at softhome.net> [2003-12-11 03:53]:
> Hi,
>
> Is there a module that I could import so that I could use linux commands?
os.system
will let you run any command available on the system
commands.getoutput
will let you collect stdout from a system command that you run
> the os modules seems limited because I wanted to use some commands for
> my script..
Limited in what way? What type of commands are you trying to use and
what are you using them for?
--
David Rock
david at graniteweb.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20031210/ad6c2108/attachment.bin
More information about the Tutor
mailing list