please solve

harijay harijay at gmail.com
Mon Oct 13 15:22:24 EDT 2008


On Oct 12, 12:15 pm, Raymond Cote <rgac... at AppropriateSolutions.com>
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



More information about the Python-list mailing list