From owner-freebsd-questions Mon Nov 30 06:18:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA00913 for freebsd-questions-outgoing; Mon, 30 Nov 1998 06:18:24 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jaguar.ir.miami.edu (jaguar.ir.miami.edu [129.171.32.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA00908 for ; Mon, 30 Nov 1998 06:18:22 -0800 (PST) (envelope-from marcus@jaguar.ir.miami.edu) Received: from jaguar.ir.miami.edu ("port 3141"@jaguar.ir.miami.edu [129.171.32.10]) by jaguar.ir.miami.edu (PMDF V5.2-29 #30976) with ESMTP id <0F3800L0HNQCY3@jaguar.ir.miami.edu> for freebsd-questions@FreeBSD.ORG; Mon, 30 Nov 1998 09:18:12 -0500 (EST) Date: Mon, 30 Nov 1998 09:18:12 -0500 (EST) From: "Joe \"Marcus\" Clarke" Subject: Re: Running a script after connecting with ppp In-reply-to: <3662A825.61E822A6@crosslink.net> To: Scott Cc: freebsd-questions@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Create a /etc/ppp/ppp.linkup file, and add an entry for your dialing profile. Then add a !bg line for the script you wish to run: myprofile: delete ALL add 0 0 HISADDR !bg ifconfig -a | mail user Joe Clarke On Mon, 30 Nov 1998, Scott wrote: > 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. > > Thanks, > > Scott > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message