From owner-freebsd-questions Sat Dec 5 16:36:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA01446 for freebsd-questions-outgoing; Sat, 5 Dec 1998 16:36:39 -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 QAA01391 for ; Sat, 5 Dec 1998 16:35:46 -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 AAA03118; Sun, 6 Dec 1998 00:34:25 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 AAA58092; Sun, 6 Dec 1998 00:07:37 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199812060007.AAA58092@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Scott cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running a script after connecting with ppp In-reply-to: Your message of "Mon, 30 Nov 1998 09:13:57 EST." <3662A825.61E822A6@crosslink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 06 Dec 1998 00:07:37 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. Try writing the following /etc/ppp/ppp.linkup: MYADDR: !bg sh -c "echo MYADDR | mail user" You need the ``sh -c'' to understand the ``|''. > Thanks, > > Scott -- 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