getting IP address of router
Peter L. Peres
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Feb 11 15:21:30 UTC 2005
On Fri, 11 Feb 2005, jim ruxton wrote:
> Thanks Anton, No this router doesn't support SNMP. It's ok though
> because others have pointed out alternative methods that seem to work.
> Except I'm still having trouble figuring out why the following script
> doesn't work properly for me where it does for other people. If anyone
> has any suggestions why I'm eager to hear them.
>
> # curl -s -o - http://www.myip.dk | sed 's%.* IP: \(.*\)</title>.*%\1%'
What is your shell ? You should also use sed -e <continue as above> imho
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list