telnet.read_until() from telnetlib
jpopl at interia.pl
Mon Aug 29 09:44:47 CEST 2005
I have same problem with expect :-(
I am calling:
it works in most cases, but sometimes (with exacly same "expected" value) it
returns -1,Nil,"some text"
the point is, that:
- connection is still active, so it should read more!
- it doesn't wait timeout seconds (I used time.time() to check that, time is
zero, timeout is about 20s)!
In what case "expect" or "read_until" will stop reading without waiting for
Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net
More information about the Python-list