On 2017-05-31 20:01, John Andersen wrote:
On 05/31/2017 02:02 AM, Carlos E. R. wrote:
In order to get the external IP on a script I used (Dec 2015) this one liner:
wget -qO - checkip.dyndns.org | cut -d":" -f2 | cut -d"<" -f1
and this is failing now (returns empty), but I'm unable (ie, too thick today) to see why. The output of the wget run is:
That works for me. But then, I'm a paying customer of dyndns. Maybe they want a login of some kind ?
No, it is working for me now, and fast, on my desktop computer. On my laptop it did not, for two days at least. desktop: cer@Telcontar:~> wget -qO - checkip.dyndns.org <html><head><title>Current IP Check</title></head><body>Current IP Address: X.X.X.X</body></html> laptop: <html><head><title>Current IP Check</title></head><body>Current IP Address: Y.Y.Y.Y</body></html> The responses are the same, the only difference is the IP number. I don't understand it. Maybe different versions of the apps. I'll log the versions here for comparing later: GNU Wget 1.14 built on linux-gnu. wget-1.14-8.3.1.x86_64 cut (GNU coreutils) 8.25 coreutils-8.25-1.4.x86_64 Perhaps a locale difference? LANG=en_US.utf8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=es_ES@euro LC_TIME=en_DK.UTF-8 LC_COLLATE=POSIX LC_MONETARY=es_ES@euro LC_MESSAGES="en_US.utf8" LC_PAPER=es_ES@euro LC_NAME=es_ES@euro LC_ADDRESS="en_US.utf8" LC_TELEPHONE=es_ES@euro LC_MEASUREMENT=es_ES@euro LC_IDENTIFICATION="en_US.utf8" LC_ALL= -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)