On Feb 1, 4:31 pm, Jinno <[EMAIL PROTECTED]> wrote:
> I don't know if anyone ever got back to you with a fix, but for me the
> fix was really simple.
>
> I just added a self.sendline() and a time.sleep(0.5) right before the
> first read_nonblocking() call within synch_original_prompt
Thank you!!!
On Feb 1, 10:49 am, [EMAIL PROTECTED] wrote:
> On Jan 16, 9:24 am, jrpfinch <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm attempting to use thepxsshto execute commands on a remote
> > machine and do stuff with the output. Both machines are running SSH
> > Version Sun_SSH_1.0, protocol versions 1.5/2.0
On Jan 16, 9:24 am, jrpfinch <[EMAIL PROTECTED]> wrote:
> I'm attempting to use thepxsshto execute commands on a remote
> machine and do stuff with the output. Both machines are running SSH
> Version Sun_SSH_1.0, protocol versions 1.5/2.0 and Intel Solaris 9.
>
> I am hitting a problem with read_n
Just glanced at the docs, but it might be worth a shot...
try:
> >>> import pxssh
> >>> s=pxssh.pxssh()
> >>> s.login("myhost","root","mypass", auto_prompt_reset=False)
Maybe???
Otherwise, I have used and modified this script with great success:
(ssh_session.py)
http://www.koders.com/python/f
I'm attempting to use the pxssh to execute commands on a remote
machine and do stuff with the output. Both machines are running SSH
Version Sun_SSH_1.0, protocol versions 1.5/2.0 and Intel Solaris 9.
I am hitting a problem with read_nonblocking in the pexpect module as
follows:
>>> import pxssh