you can modify this for your ppp port, save in it under /etc/cron.daily
and make it executable ...
#!/bin/sh
IP=`/sbin/ifconfig | /bin/grep -3 eth0 | grep addr:| /usr/bin/cut -c
21-33`
echo "http://$IP" | mail -s IP [EMAIL PROTECTED]
.. or take time to write it in perl ;-)
Even better you can modify it so it will store the ip in a file and just
email it when "ifconfig" returns a different IP.
there is no need to use perl ..
alain
Sridhar G wrote:
>
> Hi,
>
> I've configured my PPP to autodial when connection is lost, using linuxconf
> .
>
> First I'd like to know where the PPP configuration is stored by linuxconf.
>
> Next, whenever ppp autodials and receives my dynamic IP address I want to
> capture the dynamic IP address and use sendmail to send an email with the
> new IP address to my public email account.
>
> How can I achive this. DO I have to write any perl scripts?
>
> Thanks
> Sridhar