command line tool for process communication

Fredrik Lundh fredrik at pythonware.com
Sun Aug 17 18:23:13 EDT 2008


aditya shukla wrote:

> I have a program which is run through command line .I am trying to 
> create another command line tools which controls this program.
> So for example in my new program when i give
> 
> newprog -a then it should invoke the existing tool and perform one of 
> its operation.eg <http://operation.eg> existtprog -s
> 
> How could this be done in python? Optparse can be used to make the new 
> tool but what should be done to control the existing tool from the new tool?

http://docs.python.org/lib/module-subprocess.html ?

</F>




More information about the Python-list mailing list