Na piwo
# take your pick: grep, sed, perl, or different host
# ip=`wget -q -O - http://whatismyip.org/`
# ip=`wget -q -O - http://checkip.dyndns.org/ | grep -o -E '([0-9]+\.){3}[0-9]+'`
# ip=`wget -q -O - http://checkip.dyndns.org/ | sed 's/[^.0-9]*//g'`
# ip=`wget -q -O - http://checkip.dyndns.org/ | perl -nle 'print for /Address: ([^<]*)/'`
znalezione i działa![]()
można wrzucić do crona
