Run Unix shell command $ parse command line arguments in python

Terry Hancock hancock at anansispaceworks.com
Sat Apr 23 00:42:34 EDT 2005


On Friday 22 April 2005 01:39 am, rkoida at yahoo.com wrote:
>      I am a newbie to python. I have a makefile which i can compile in
> UNIX/LINUX, But i
> I am planning to write a python script which actually does what my
> MAKEFILE does. The make file is
[...]
> I want to write a python script to replace this Makefile.
> I Have tried using getopt/optparse for parsing command line options
> How to Run  Unix shell command from python.

Read the documentation on the "os" and "popen2" modules under
"generic operating system services" in the Python Standard Library
Manual (go to http://www.python.org if you haven't already got this
manual on hand).

Cheers,
Terry

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list