[Tutor] telnetlib

Deirdre Saoirse deirdre@deirdre.net
Tue, 14 Mar 2000 12:44:48 -0800 (PST)


On Tue, 14 Mar 2000, Todd Martin wrote:

> Ok so how do I do that? That was my biggest issue with Perl in that each
> router has a different prompt, meaning I had to change the script every time
> I needed to connect to a new router. You'll have to excuse me, I've been
> using perl for 3 years, python is very new to me.

Well, one way to do it would be to have the names of each router in a
dictionary with the prompts and responses for each. I can spend more time
on this later but I'm under a code crunch at the moment. :)

-- 
_Deirdre   *   http://www.linuxcabal.org   *   http://www.deirdre.net
"During my service in the United States Congress, I took the initiative in
creating the Internet." -- Al Gore
"If Al Gore invented the internet, I invented spell check." -- Dan Quayle