Just gimme the IP!
Jordon Bedwell
jordon at envygeeks.com
Tue Jun 14 20:34:12 UTC 2011
On 6/14/2011 2:59 PM, Luke Faraone wrote:
> We could just get an API key from whatismyip.com, or use whatismyip.org
Wouldn't it be much more viable to just create a quick script on a
sub-domain ip.launchpad.net or ip.ubuntu.com or ip.canonical.com and
then curl or wget it? EXP:
curl -s ip.envygeeks.com
wget -q -O - ip.envygeeks.com
No added text, no need to grep, no need to sed, nothing but the IP. You
can even have the script adjust the curl command per interface too
making it so if you have multiple IP's you can get each one.
More information about the ubuntu-devel
mailing list