Scripting and interactive terminal client in python
<p>I need to script/automate an interactive terminal client using python. The client accepts three arguments and runs as follows:</p>

<pre><code>&gt;./myclient &lt;arg1&gt; &lt;arg2&gt; &lt;arg3&gt;
Welcome...
blah...
blah..
[user input]
some more blah... blah... for the input entered
blah.. 
blah..
[basically it accepts input and puts the output in the console until the user types 'quit']
</code></pre>

<p>Now i need to automate this in python and the console output saved in a file.</p>

<p>Any help on this is highly appreciated...</p>
