how to make script interact with another script

Chason Hayes chasonh at
Mon Mar 20 19:11:53 CET 2006

How can I get a script to pipe data to another program, wait for a
response, then send more data etc.

For example, from a script, I want to run smbclient then send it the
username, password, and then some commands. (I know there are better ways
to achieve this functionality, it is the principle that I am after)

More information about the Python-list mailing list