How do you run system commands?

Jesper Hertel jh at
Fri Mar 3 11:20:40 CET 2000

Hi Marty,

Try os.system().

Jesper Hertel

Marty Joyce <martys at> wrote in message
news:89nl8v$n3s$1 at
> Hi
> I'm a newbie to python and am in the process of converting some tcl
> to python on a linux platform.
> Can anyone tell me how to run system commands (eg: sed, grep....) from
> within a python script file?
> Any help is appreciated.
> Regards
> Marty Joyce

More information about the Python-list mailing list