Interact programmatically with duplex streams. Similar to Unix's expect.