Roberto C. Sanchez wrote:
-------- 8< -------- #!/bin/sh EMAIL="you@example.com" lynx -dump http://checkip.dyndns.org |sed -n '/Current/s/.*: \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)/\1/p' | /usr/bin/Mail -s "IP address as of `date`" $EMAIL -------- 8< -------- HTH, -Roberto
FWIW this site requires no parsing: wget http://www.whatismyip.org/ -qO - | html2text | mail [etc etc ....]