Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 01:54:16 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "John Telford" <j.telford@sympatico.ca>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Have my offsite boxes e-mail me their IP address when it changes ?
Message-ID:  <004901c090d2$cbff6c20$1200a8c0@gsicomp.on.ca>
References:  <002c01c090c3$7715e540$022ce540@johnny2k>

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm sure someone must have a script that can test and mail if it changes.

If you're using user-ppp, you can use the ppp.linkup script (see
/usr/share/examples/ppp) to email you when the link comes up.  Since the
most common use of the linkup script is to update default routes (well, used
to be, when ppp wouldn't do it automatically), I'm pretty sure you could use
it to send you an email with updated IP information.

MYADDR:
  ifconfig tun0 | mail -s "New IP" you@yourdomain.net

--
Matt Emmerton



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004901c090d2$cbff6c20$1200a8c0>