Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 1999 15:38:58 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Mark Hartley <mark@whetstonelogic.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: PPP.LINKUP 
Message-ID:  <199909101438.PAA44568@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Thu, 09 Sep 1999 11:40:31 EDT." <1.5.4.16.19990909084131.1097f24c@mail.whetstonelogic.com> 

next in thread | previous 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

This won't work with ``iface-alias'' enabled.  You should use MYADDR 
instead.

> Hope this helps.
> 
> 
> Mark.

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




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?199909101438.PAA44568>