SSH and Windows

Peter Hansen peter at engcorp.com
Sat Aug 2 10:25:54 EDT 2003


Peter Hansen wrote:
> 
> Maybe try this.  Tested (mostly) under Python 1.5.2 (as I recall, under
> Linux) and Python 2.0 under Windows:
> 
>                 elif state == 'stalled':
>                     match = child.expect([pexpect.EOF, pexpect.TIMEOUT, 'ETA'],
>                         timeout=self.timeout)
>                     if match == 0:
>                         break
>                     elif match == 1:
>                         import pdb
>                         pdb.set_trace()
>                         raise SshException('stalled for too long, aborted copy')

Ugh... remove the "import pdb" and subsequent pdb.set_trace() before attempting
to use the above... sorry about that.  Must have checked a debugging version
in to CVS. :-(

-Peter




More information about the Python-list mailing list