From owner-freebsd-questions Sat Jul 12 19:01:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA29872 for questions-outgoing; Sat, 12 Jul 1997 19:01:01 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA29859 for ; Sat, 12 Jul 1997 19:00:57 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.6/8.8.5) with ESMTP id TAA06725 for ; Sat, 12 Jul 1997 19:00:20 -0700 (PDT) Received: from awfulhak.org (dev.lan.awfulhak.org [10.0.1.5]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id CAA29408; Sun, 13 Jul 1997 02:11:15 +0100 (BST) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.6/8.8.6) with ESMTP id CAA14212; Sun, 13 Jul 1997 02:11:15 +0100 (BST) Message-Id: <199707130111.CAA14212@awfulhak.org> X-Mailer: exmh version 2.0delta 6/3/97 To: "Stan Brown" cc: freebsd-questions@freebsd.com (Free BSD Questions list) Subject: Re: Still trying to invoke a script on ijppp linkup In-reply-to: Your message of "Sat, 12 Jul 1997 15:14:32 EDT." <199707121914.MAA04801@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Jul 1997 02:11:15 +0100 From: Brian Somers Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I am still thashing around with trying to execute an arbitray shell > script when ijppp links up to my ISP. Acording to the man page for the > vesrion found at http://www.freebsd.org/~brian/. I should be able to > use the "shell" keyword, So i put the following in /etc/ppp/ppp.linkup > > shell "echo HISADDR > /tmp/addr" This will attempt to execute a program called "echo HISADDR > /tmp/addr" - not really what you're looking for ;-) You really want: shell sh -c "echo HISADDR > /tmp/addr" [.....] > -- > Stan Brown stanb@netcom.com 404-996-6955 > Factory Automation Systems > Atlanta Ga. > -- > Look, look, see Windows 95. Buy, lemmings, buy! > Pay no attention to that cliff ahead... Henry Spencer > (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. -- Brian , Don't _EVER_ lose your sense of humour....