<div dir="ltr">Hello all,<br>I try to implement a custom ssh server with twisted . I use<span class="txtplain1"><i> sshserver.py to begin (</i></span> <a href="http://www.devshed.com/c/a/Python/SSH-with-Twisted/">http://www.devshed.com/c/a/Python/SSH-with-Twisted/</a> )<br>
I would like to execute interactive scripts which are on my server. The problem is theses scripts are interactives. How can I redirect IO on my shell ?<br>For example, if I want to install a software with apt. I have questions to install dependencies ( yes/no)<br>
I start to create a definition for this function like def do_apt. And then when in my custom shell I execute ( apt python)., that executes apt-get install python on the server. But how can I redirect the output in my shell to answer dependencies questions ?<br>
Thanks for your help<br><br>Best Regards<br>The Noob06<br><br><br><br><br></div>