Re: Aktuelle IP per Skript auslesen
Hallo Wolf!
Wolf Wiegand schrieb am Sonntag, den 04. Januar 2009:
> Das Abfragen der aktuellen IP-Adresse mache ich mit:
>
> lynx --dump http://checkip.dyndns.org | sed "s/.*s:\ //" | grep -v ^$
>
Wenn man schon sed benutzt, könnte man sich das grep auch noch sparen:
lynx --dump http://checkip.dyndns.org | sed -n "/s:/{s/.*s: //;p}"
Grüße
Christian
--
hundred-and-one symptoms of being an internet addict:
75. You start wondering whether you could actually upgrade your brain
with a Pentium Pro microprocessor 80. The upgrade works just fine.
Reply to: