From owner-freebsd-questions Fri Oct 24 17:39:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA01519 for questions-outgoing; Fri, 24 Oct 1997 17:39:58 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from sam.networx.ie (ts25-48.dublin.indigo.ie [194.125.145.178]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA01513 for ; Fri, 24 Oct 1997 17:39:47 -0700 (PDT) (envelope-from mike@NetworX.ie) Received: from mike (mike.networx.ie [194.9.12.33]) by sam.networx.ie (8.8.5/8.8.5) with SMTP id BAA13814 for ; Sat, 25 Oct 1997 01:39:49 +0100 (BST) X-Organisation: I.T. NetworX Ltd X-Business: Network Consultancy and Training X-Address: 67 Merrion Square, Dublin 2, Ireland X-Voice: +353-1-676-8866 X-Fax: +353-1-676-8868 Date: Sat, 25 Oct 1997 01:39:01 BST From: Michael Ryan Reply-To: mike@NetworX.ie Subject: Executing a program after iijppp activates the link To: FreeBSD Support Message-ID: Priority: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all, I've just configured dial-on-demand user-mode ppp and it's excellent! Works really well. I've got just one problem: the link will be going down and up intermittently, as it's dial-on-demand and I've set an inactivity timeout. Whenever the links becomes active again, I need to run an external program. The "Pedantic PPP Primer" (http://www.freebsd.org/tutorials/ ppp/ppp.html) and the manpage (ppp(1)) don't say how to do this. Looking at /etc/ppp/ppp.linkup.sample, the "pmdemand" entry has a statement as follows: ! sh -c "/some/program/or/other &" This presumably executes the program in quotes (as the comments in the file say it does). Now, what I'd really like to know is (a) What are the exact syntax/symantics of this statement? (b) How does it differ from the "shell" command available from within ppp's prompt? That is, could I also use shell "/some/prog" in my ppp.linkup entry? Thanks in advance for any help. Bye, Mike ---