getting IP address of router
jim ruxton
cinetron-uEvt2TsIf2EsA/PxXw9srA at public.gmane.org
Wed Feb 9 19:50:45 UTC 2005
Hi Lennart,
I'll have to see if I can find dog. Doesn't seem to be in the Fedora 1
apt repository. I tried replacing dog with curl in your script but I
guess it's not so easy. Here's what I got..
% Total % Received % Xferd Average Speed Time
Curr.
Dload Upload Total Current Left
Speed
100 2163 0 2163 0 0 132 0 --:--:-- 0:00:16 --:--:--
80111
65.95.106.237�</font><br> <input type="text" name="ip"><br>
<input type="submit"
value="Konverter"></form></center><p> <center><p><form
method="post" action="/CMyip.dll?DoReverseFormConvert2"
name="form1"><font size="2" face="Verdana">Skriv hostname'et du vil have
IP'en p�</font><br> <input type="text" name="hostname"><br> <input
type="submit" value="Konverter"></form></center><
snip ..
Jim
> On Wed, Feb 09, 2005 at 12:43:10PM -0500, jim ruxton wrote:
> > > dog http://www.myip.dk|tail -1|sed -e 's%.*IP: \(.*\)</title>.*%\1%'
> > Your kidding right? Is there really a dog command? I don't have one.
>
> Would I be kidding about such a thing?
>
> lennartsorensen at debdev1:~$ apt-cache show dog
> Package: dog
> Priority: optional
> Section: text
> Installed-Size: 76
> Maintainer: Norbert Tretkowski <nobse-8fiUuRrzOP0dnm+yROfE0A at public.gmane.org>
> Architecture: i386
> Version: 1.7-4
> Depends: libc6 (>= 2.3.2-1)
> Filename: pool/main/d/dog/dog_1.7-4_i386.deb
> Size: 14972
> MD5sum: c3b6494176b2b290e4e92f00db75d912
> Description: Enhanced replacement for cat
> dog writes the contents of each given file, URL or standard
> input to standard output. It currently supports file, http
> and raw URLs. It is designed as a compatible, but enhanced
> replacement for cat.
>
> Sound useful?
>
> Of course sometimes lynx -dump is handy for eliminating the html. I
> suppose wget might even have an option for dumping files to stdout, but
> dog is much smaller it seems. curl isn't bad either.
>
> Lennart Sorensen
> --
> 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
>
--
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