Verizon DSL?
Derek Atkins
warlord at MIT.EDU
Thu Oct 26 14:19:56 EDT 2000
John Abreau <jabr at blu.org> writes:
> What I plan to do is run a cron script that periodically checks the ip
> address from ifconfig. When the address changes, the script will email the
> new address to a mailbox outside my home network.
Why not just key off the DHCP scripts? Most DHCP implementations will
run a script when the DHCP state changes; you can key off of that to
email yourself. For example, pump lets you set a script in
/etc/pump.conf (script = /path/to/XXX). man pump for more info.
Dhcpcd also provides a script, as does dhclient.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL N1NWH
warlord at MIT.EDU PGP key available
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list