From owner-freebsd-questions Fri Dec 11 11:20:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA14690 for freebsd-questions-outgoing; Fri, 11 Dec 1998 11:20:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA14645 for ; Fri, 11 Dec 1998 11:20:39 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA00612; Fri, 11 Dec 1998 19:20:29 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.1/8.9.1) with ESMTP id IAA41869; Fri, 11 Dec 1998 08:51:03 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199812110851.IAA41869@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Patrick Gardella cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP and post-connection scripts In-reply-to: Your message of "Thu, 10 Dec 1998 09:18:37 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 11 Dec 1998 08:51:03 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You're not running the latest ppp. You can get it from http://www.Awfulhak.org/ppp.html and it comes with 2.2.8 & 3.0 as standard. Your alternative (with the version you've already got) is to create a script: #! /bin/sh echo $* | mail patrick@cre8tivegroup.com and then put this in /etc/ppp/ppp.linkup: !bg /path/to/my/script MYADDR > A few days ago, Brian Somers suggested the following to send the IP address of > the ppp connection to an email address. What this does for me is send a > message that says "MYADDR". This is from my ppp.linkup file: > > MYADDR: > !bg sh -c "echo MYADDR | mail patrick@cre8tivegroup.com" > > I'm running FreeBSD 2.2.7-STABLE from November 17th. > > Anyone know how to make this work, other than as I have in the past of writing > a script to grab the netstat -rn and mailing that? I'd rather make it as > simple as possible! > > Patrick > > --- > Patrick S. Gardella Director of Web Development > The Creative Group 1-800-804-0783 ext 29 606-858-8029 (fax) > http://www.cre8tivegroup.com PGP Key ID 0xEE2D47A9 -- 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