From owner-freebsd-questions Mon Nov 30 18:19:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA28105 for freebsd-questions-outgoing; Mon, 30 Nov 1998 18:19:24 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from the-twist.crosslink.net (the-twist.crosslink.net [206.246.124.74]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA28084 for ; Mon, 30 Nov 1998 18:19:21 -0800 (PST) (envelope-from sgregory@crosslink.net) Received: (qmail 17468 invoked from network); 1 Dec 1998 02:19:09 -0000 Received: from dyn20.pm2-1.lexington-park.236.crosslink.net (HELO win95.scott.home) (206.246.70.244) by the-twist.crosslink.net with SMTP; 1 Dec 1998 02:19:09 -0000 Received: by localhost with Microsoft MAPI; Mon, 30 Nov 1998 21:19:07 -0500 Message-ID: <01BE1CA7.104F4820.sgregory@crosslink.net> From: "Scott D. Gregory" Reply-To: "sgregory@crosslink.net" To: "'David Kelly'" Cc: "freebsd-questions@FreeBSD.ORG" Subject: RE: Running a script after connecting with ppp Date: Mon, 30 Nov 1998 21:19:00 -0500 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for the info. Its a little more than I'm looking for, but I'll keep it for future reference. I was just looking for a way to find out what my IP address is when the system connects, this way I can connect to my machine when I'm not home. If I can get to my mail thats sitting at my provider, I'll know my IP address to telnet in. Thanks, Scott -----Original Message----- From: David Kelly [SMTP:dkelly@hiwaay.net] Sent: Monday, November 30, 1998 8:02 PM To: Scott Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running a script after connecting with ppp Scott writes: > I would like to run a script (more specifically, I would like to send my > IP address to a mail account (ifconfig -a | mail user - would suffice)) > whenever my box connects to my provider. I thought I had seen info on > this in the past but I cannot find it now. Any info on how to do this > would be appreciated. I use pppd, and don't always want such an automatic action to be run. Have attached the script I run from cron which starts pppd, uploads and downloads email, and updates my rc5des buffer (all three at once, not one after the other) then disconnects. Script is a bit more verbose than it needs to be. << File: cronjobs.txt >> << File: ATT00008.txt >> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message