From owner-freebsd-questions Thu Sep 9 8:41:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dc.numbersusa.com (mail.whetstonelogic.com [205.252.46.165]) by hub.freebsd.org (Postfix) with ESMTP id 50B4B15CFF for ; Thu, 9 Sep 1999 08:40:58 -0700 (PDT) (envelope-from mark@whetstonelogic.com) Received: from work (ts003d09.sal-or.concentric.net [207.155.239.117]) by dc.numbersusa.com (8.8.8/8.8.5) with SMTP id LAA16192 for ; Thu, 9 Sep 1999 11:40:31 -0400 (EDT) Date: Thu, 9 Sep 1999 11:40:31 -0400 (EDT) Message-Id: <1.5.4.16.19990909084131.1097f24c@mail.whetstonelogic.com> X-Sender: mark@mail.whetstonelogic.com X-Mailer: Windows Eudora Light Version 1.5.4 (16) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: questions@freebsd.org From: Mark Hartley Subject: Re: PPP.LINKUP 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 Hope this helps. Mark. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message