On Tue, Jun 21, 2005 at 04:48:51PM -0400, Patrick Rutkowski wrote: > On Tuesday 21 June 2005 04:39 pm, Valeriu Cerchez wrote: > > I'm trying to find out a(/n easy) way to determine > > what is my dynamic IP assigned by my ISP (not my > > internal DHCP). I wish to make a script to determine > > that by request. > > > > I would greatly appreciate any suggestion. > > Thanks, Val. > > > While we're at it, i'd love a bash script to mail mine to me :-)
-------- 8< -------- #!/bin/sh EMAIL="[EMAIL PROTECTED]" 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 -- Roberto C. Sanchez http://familiasanchez.net/~sanchezr
pgpnZup1XiLsa.pgp
Description: PGP signature