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) -- http://mail.python.org/mailman/listinfo/python-list