howto use curl to get Internet IP

Stuart Sears stuart at sjsears.com
Sat Jun 7 07:41:34 UTC 2008


Jim wrote:

> What approach would you suggest that is better to use ?
> I have a DSL AP 2Wire783 in front of my  computer that does not have the 
> capability of giving me the Internet IP

This works for me after a moment's experimentation:

links -dump http://www.getip.com/| awk '/^IP Address:/ {print $NF}'

Stuart





More information about the fedora-list mailing list