Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 1999 11:40:31 -0400 (EDT)
From:      Mark Hartley <mark@whetstonelogic.com>
To:        questions@freebsd.org
Subject:   Re: PPP.LINKUP
Message-ID:  <1.5.4.16.19990909084131.1097f24c@mail.whetstonelogic.com>

next in thread | raw e-mail | index | archive | help
At 08:23 PM 9/8/99 -0500, you wrote:
>I'm trying to set up up a static name with a dynamic IP by mailing a 
>friend with a static IP and name.  I've got the following command in
>my ppp.linkup file:
> !bg echo MYADDR | mail dyndns@blah.blah
>
>The intent is to mail my current IP to him every time ppp connects (I use 
>ppp -ddial), but it isn't sending anything.  I'm at a loss to know
>if it isn't the proper command or if the ppp.linkup isn't running.
>
>Any suggestions most appreciated!
>

What I use is (in ppp.linkup):  

  ! /bin/sh -c "/etc/ppp/linkup.sh &"


then the file /etc/ppp/linkup.sh contains:

sleep 30
ifconfig tun0 | grep inet | cut -c 7-20 | mail username@host



Hope this helps.


Mark.



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?1.5.4.16.19990909084131.1097f24c>