executing os commands

Matthew Schinckel matt at null.net
Mon Jun 19 20:30:31 EDT 2000


Bob van der Poel <bvdpoel at uniserve.com> wrote:
> Is getstatusoutput() the perfered method to run os commands from
> within a python script or is there something more generic? This works
> fine, but I'm just thinking that since this is part of a unix only
> module....



Try using os.system(command)

Matt.






More information about the Python-list mailing list