From owner-freebsd-questions Fri Sep 10 7:35:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 681EA157B7 for ; Fri, 10 Sep 1999 07:35:13 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id PAA89935; Fri, 10 Sep 1999 15:34:19 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id PAA44568; Fri, 10 Sep 1999 15:38:58 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199909101438.PAA44568@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Mark Hartley Cc: questions@FreeBSD.ORG Subject: Re: PPP.LINKUP In-reply-to: Your message of "Thu, 09 Sep 1999 11:40:31 EDT." <1.5.4.16.19990909084131.1097f24c@mail.whetstonelogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 10 Sep 1999 15:38:58 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message