On Oct 12, 12:15 pm, Raymond Cote <[EMAIL PROTECTED]>
wrote:
> shweta mani wrote:
> > hi folks,
> > i have been assigned a project on Python. i need to execute a remote
> > shell script file from a windows machine 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)
>
> You could take a look at the Fabric project for some ideas as to how to
> do this:
>    <http://www.nongnu.org/fab/documentation.html>
>
> --R

ALso  please look at the pexpect module. This allows you to supply
"human" input to automate scripts that require it.
Look at http://www.noah.org/wiki/Pexpect#Description_of_Pexpect
Hope this helps
Harijay
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to