Check out os.popen. It will let you do what you are asking with grep. As for strings of pipes, I have never had much luck getting two-way communication between python and a process going, but you might want to check out the popen2 module. Alex.