From owner-freebsd-questions Tue Jan 22 5:35:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-american.com (sage-american.com [216.122.141.44]) by hub.freebsd.org (Postfix) with ESMTP id 74B1037B400 for ; Tue, 22 Jan 2002 05:35:10 -0800 (PST) Received: from SAGEONE (adsl-208-191-227-30.dsl.crchtx.swbell.net [208.191.227.30]) by sage-american.com (8.9.3/8.9.3) with SMTP id HAA20581 for ; Tue, 22 Jan 2002 07:35:06 -0600 (CST) Message-Id: <3.0.5.32.20020122073502.01831ca0@mail.sage-american.com> X-Sender: jacks@mail.sage-american.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 22 Jan 2002 07:35:02 -0600 To: freebsd-questions@freebsd.org From: jacks@sage-american.com Subject: The ppp.linkup file Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I run DSL on one machine using PPPoE via ppp on 4.4-stable using automaic DDIAL so that any disconnectes will reconnect. Of course, I would like to know when there are any connection breaks. For this purpose, there is a "ppp.linkup" file that is part of the distribution that says it will: ######################################################## # Example of ppp.linkup file # # This file is checked when ppp establishes a connection. # ppp searches the labels in this file as follows: # # 1) The label that matches the IP number assigned to our side. # # 2) The label specified on the command line to ppp. # 3) If no label has been found, use MYADDR if it exists. # ######################################################### Well, I have the following single command line place in this file to launch a script that tells me about any new reconnects, but it is not being run. The syntax is pretty crytic, but follows the same syntax of the one above it that is supposed to launch a sound file, but NADA.... ! /bin/sh /etc/ppp/linkup.sh Here's the examples in the file, plus my own command as per #2 above. pmdemand: #!bg /etc/ppp/ppp.etherup.pmdemand #! sh -c "cat /etc/ppp/linkup.au >/dev/audio" ! /bin/sh /etc/ppp/linkup.sh The "linkup.sh" is made executable and runs, so it should run okay if this thing would just work. Does anyone have a suggestion about why this ppp.linkup file is not running my script??? Thanks for any ideas. Best regards, Jack L. Stone, Server Admin =================================================== Sage-American http://www.sage-american.com jacks@sage-american.com "My center is giving way, my right is in retreat; ....situation excellent! ....I shall attack!" =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message