Date: Fri, 26 May 2000 14:10:27 -0400 From: Chip Marshall <chip@setzer.chocobo.cx> To: "Jonathan E. Lyons" <parrothd@midwest.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP & script execution Message-ID: <20000526141027.A69014@setzer.chocobo.cx> 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 References: <3.0.5.32.20000526124310.01304360@midwest.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chip@chocobo.cx> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000526141027.A69014>