how to invoke the shell command and then get the result in python

Bin Chen binary.chen at gmail.com
Tue Dec 5 02:19:35 EST 2006


Hi,

I want to do following: get a user input regex, then pass this as a
parameter to grep, and then get the result from grep.

Any code snip to implement the similar function? I am a python newbie.

Thanks a lot.
Bin




More information about the Python-list mailing list