<div dir="ltr"><div>hi folks</div>
<div>i need to execute a shell script file through SSH twisted or paramiko. if it is a normal file then directly with the command&nbsp; sh &lt;filename&gt;.sh it is getting executed.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.conn.sendRequest(self, &#39;exec&#39;, common.NS(sh test1.sh), wantReply = 1)<br>
</div>
<div>but if a shell scripts asks for user input, this particular way does not wait for user input. it just print the echo part .</div>
<div>is there any way so that interactive type of scripts can be executed in Paramiko or Twisted Conch in a windows machine (remote login in a unix machine through Paramiko SSH or Twisted)</div>
<div>&nbsp;</div>
<div>i did try with another way in Paramiko which helps in opening a remote window by creating an instance of SSHClient and invoking the method invoke_shell(with some parametes) but remote shell window is not opening.</div>

<div>the method specifies starts a terminal shell window in SSH server.&nbsp;</div>
<div>i am forwarding the code</div>
<div>&nbsp;<br></div>
<div class="gmail_quote">On Fri, Oct 3, 2008 at 9:13 PM, shweta mani <span dir="ltr">&lt;<a href="mailto:shweta3230@gmail.com">shweta3230@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">
<div>hi all it really helped.<br><br></div>
<div>
<div></div>
<div class="Wj3C7c">
<div class="gmail_quote">On Thu, Oct 2, 2008 at 9:28 PM, George Pauly <span dir="ltr">&lt;<a href="mailto:george@ringdevelopment.com" target="_blank">george@ringdevelopment.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Would &#39;ls -l -R&#39; do the trick?<br><br>-George<br>
<div><br>On Thu, 2008-10-02 at 11:40 +0530, shweta mani wrote:<br><br>&gt; hi all i got the solution of listing all ls -l files in a listbox .<br>&gt; Next problem is to use recurrsively ls -l command again if a user<br>
&gt; selects a directory. Can we use multiple in Linux commands within a<br>&gt; program withoy using pipe. i am forwarding the code. i need to use ls<br>&gt; -l command dependng on whether he chooses a directory.<br>&gt;<br>
</div>&gt; ..........<br>
<div>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; d = self.conn.sendRequest(self, &#39;exec&#39;, common.NS(&#39;ls -l&#39;),<br>&gt; wantReply = 1)<br></div><font color="#888888">--<br>George Pauly<br>Ring Development<br><a href="http://www.ringdevelopment.com/" target="_blank">www.ringdevelopment.com</a><br>
</font>
<div>
<div></div>
<div><br><br>_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br></div></div></div></blockquote></div><br></div>