How do you run system commands?

Jesper Hertel jh at cddk.dk
Fri Mar 3 05:20:40 EST 2000


Hi Marty,

Try os.system().


Jesper Hertel

Marty Joyce <martys at netspace.net.au> wrote in message
news:89nl8v$n3s$1 at otis.netspace.net.au...
> Hi
>
> I'm a newbie to python and am in the process of converting some tcl
scripts
> 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