telnet.read_until() from telnetlib

sp1d3rx at sp1d3rx at
Tue Aug 30 22:37:38 CEST 2005

but the 'expect' gives you more details about the failure... read the
documentation on telnet objects here:
It says this specifically:
"If end of file is found and no text was read, raise EOFError.
Otherwise, when nothing matches, return (-1, None, text) where text is
the text received so far (may be the empty string if a timeout
happened). "

More information about the Python-list mailing list