Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 1998 08:51:03 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Patrick Gardella <patrick@cre8tivegroup.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: PPP and post-connection scripts 
Message-ID:  <199812110851.IAA41869@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Thu, 10 Dec 1998 09:18:37 EST." <XFMail.981210091837.patrick@cre8tivegroup.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812110851.IAA41869>