From owner-freebsd-questions Fri May 26 11:23: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hindenburg.eboai.org (hindenburg.eboai.org [205.181.254.190]) by hub.freebsd.org (Postfix) with ESMTP id 4586537C53A for ; Fri, 26 May 2000 11:10:29 -0700 (PDT) (envelope-from chip@chocobo.cx) Received: by hindenburg.eboai.org (Postfix, from userid 1000) id 89F703D5C; Fri, 26 May 2000 14:10:27 -0400 (EDT) Date: Fri, 26 May 2000 14:10:27 -0400 From: Chip Marshall To: "Jonathan E. Lyons" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP & script execution Message-ID: <20000526141027.A69014@setzer.chocobo.cx> Reply-To: chip@chocobo.cx References: <3.0.5.32.20000526124310.01304360@midwest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.4i In-Reply-To: <3.0.5.32.20000526124310.01304360@midwest.net>; from parrothd@midwest.net on Fri, May 26, 2000 at 12:43:10PM -0500 X-URL: http://www.chocobo.cx/chip/ X-OS: FreeBSD 3.4-RELEASE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On May 26, 2000, Jonathan E. Lyons sent me the following: > Is there a way to make PPP execute a script each time it connects? I've > been using cron, but I'd rather have this script run each time PPP needs to > reconnect.. To quote ppp(8) : If the /etc/ppp/ppp.linkup file is available, its contents are executed when the PPP connection is established. See the provided ``pmdemand'' example in /usr/share/examples/ppp/ppp.conf.sample which runs a script in the background after the connection is established (refer to the ``shell'' and ``bg'' commands below for a description of possible substi- tution strings). Similarly, when a connection is closed, the contents of the /etc/ppp/ppp.linkdown file are executed. Both of these files have the same format as /etc/ppp/ppp.conf. -- Chip Marshall http://www.chocobo.cx/chip/ Finger for PGP GCM/CS d+(-) s+:++ a18>? C++ UB++++$ P+++$ L- E--- W++ N+@ o K- w O M+ V-- PS PE Y? PGP++ t+@ 5 X R>+ tv+() b++>+++ DI++++ D(-) G++ e>++ h!>++ r-- y- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message