Mailinglist Archive: opensuse (1367 mails)

< Previous Next >
Re: [opensuse] maintaining dynamic ip addr, was: Writing coments on photos problem
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Mon, 01 Feb 2016 17:07:20 +0100
  • Message-id: <n8nvrp$rci$1@saturn.local.net>
Patrick Shanahan wrote:

following might help :) ::

# <--------- Cool Functions by Crouse-------->
# Cool Functions for your .bashrc file.

#myip - finds your current IP if your connected to the internet
myip ()
{
lynx -dump -hiddenlinks=ignore -nolist http://checkip.dyndns.org:8245/
| awk '{ print $4 }' | sed '/^$/d; s/^[ ]*//g; s/[ ]*$//g' }

Seems a little complicated to me. Besides who has lynx installed
anymore :-)

http://www.dns24.ch/checkip


--
Per Jessen, Zürich (12.8°C)
http://www.dns24.ch/ - your free DNS host, made in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups