Re: read_nonblocking error in pxssh

2008-02-01 Thread kayvansylvan
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!!!

Re: read_nonblocking error in pxssh

2008-02-01 Thread Jinno
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

Re: read_nonblocking error in pxssh

2008-02-01 Thread kayvansylvan
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

Re: read_nonblocking error in pxssh

2008-01-16 Thread Sean DiZazzo
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

read_nonblocking error in pxssh

2008-01-16 Thread jrpfinch
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