
hi folks i need to execute a shell script file through SSH twisted or paramiko. if it is a normal file then directly with the command sh <filename>.sh it is getting executed. self.conn.sendRequest(self, 'exec', common.NS(sh test1.sh), wantReply = 1) but if a shell scripts asks for user input, this particular way does not wait for user input. it just print the echo part . 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) 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. the method specifies starts a terminal shell window in SSH server. i am forwarding the code On Fri, Oct 3, 2008 at 9:13 PM, shweta mani <shweta3230@gmail.com> wrote:
hi all it really helped.
On Thu, Oct 2, 2008 at 9:28 PM, George Pauly <george@ringdevelopment.com
wrote:
Would 'ls -l -R' do the trick?
-George
On Thu, 2008-10-02 at 11:40 +0530, shweta mani wrote:
hi all i got the solution of listing all ls -l files in a listbox . Next problem is to use recurrsively ls -l command again if a user selects a directory. Can we use multiple in Linux commands within a program withoy using pipe. i am forwarding the code. i need to use ls -l command dependng on whether he chooses a directory.
..........
d = self.conn.sendRequest(self, 'exec', common.NS('ls -l'), wantReply = 1) -- George Pauly Ring Development www.ringdevelopment.com
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python