Shell command

Gillou nospam at bigfoot.com
Tue Feb 12 12:44:53 CET 2002


Or have a look at the popen2 package if you want to get the output of the
command.

"William Park" <opengeometry at yahoo.ca> a écrit dans le message news:
mailman.1013507179.20449.python-list at python.org...
> On Tue, Feb 12, 2002 at 10:35:21AM +0100, DelPiccolo Ivano wrote:
> > How can I do to launch a command in my python script ?
> > example : I want to launch the command : rm test.txt
>
> os.system('rm test.txt')
>
> --
> William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
> 8 CPU cluster, NAS, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Tin
>





More information about the Python-list mailing list