Cox (rhymes with "Cox") has been spontaneously switching my home IP
address recently. It locks me out to ssh.

I want to use expect and lynx to write a script that logs into the
D-Link router as a browser does, navigates to the place where the WAN IP
address is shown, reads it, and sends me an email at work if it's
changed.

However, experiments with lynx accessing the router result in no joy.

Looking up 192.168.xxx.1 first
Looking up 192.168.xxx.1
Making HTTP connection to 192.168.xxx.1
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Access without authorization denied -- retrying
Retrying with access authorization information.
Looking up 192.168.xxx.1
Making HTTP connection to 192.168.xxx.1
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://192.168.xxx.1/'
Alert!: Unable to access document.

lynx: Can't access startfile

I suspect the " Access without authorization denied" step means that the
router embedded program's asking for admin/passwd (and I do get asked
for this within lynx) is not somehow getting properly authenticated to
the router. Some java thing?

Q1: Is there some setting for lynx that will make this bad thing not
happen?

Q2: Is there an alternative way of "pinging" the router to get the WAN
address, preferably with a CLI program?

TIA,

-- 
Lan Barnes                    [EMAIL PROTECTED]
Linux Guy, SCM Specialist     858-354-0616
Tcl/Tk Enthusiast 


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to