#!/bin/sh #!/usr/bin/env bash # __author__='Lilian Besson' # __email__='lilian DOT besson AT normale DOT fr' # __date__='mar. 12/03/2013 at 14h:56m:39s ' # __webaddress__='https://sites.google.com/site/naereencorp/conky' # __license__='GPL v3' # # A simple script to give the IP address of your machine to Conky # # (c) Naereen Corp. 2013 webquery=`wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'` if [ "X$?" = "X0" ]; then echo "$webquery" else echo "No Address" fi