From owner-freebsd-questions Mon Jan 24 17:34:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id F05C31535F for ; Mon, 24 Jan 2000 17:34:05 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12CtBQ-000Aqx-00; Mon, 24 Jan 2000 23:46:08 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #1) id 12CtBQ-0001aa-00; Mon, 24 Jan 2000 23:46:08 +0000 Date: Mon, 24 Jan 2000 23:46:08 +0000 From: Ben Smithurst To: Mark Ovens Cc: questions@freebsd.org Subject: Re: shell command not working in ppp.linkdown Message-ID: <20000124234608.C5829@strontium.scientia.demon.co.uk> References: <20000124222421.E409@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000124222421.E409@marder-1> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Ovens wrote: > I start xtimer from /etc/ppp/ppp.linkup using > > bg xtimer > > but trying to kill it in ppp.linkdown with: > > shell kill `cat /tmp/xtimer.pid` > > doesn't work (/tmp/xtimer.pid contains *only* the pid). No errors > anywhere, xtimer just keeps running, however: > > shell killall xtimer > > does work. > > Anyone any idea why the former doesn't work? AIUI, PPP doesn't pass the command to /bin/sh, and it doesn't understand the backticks. (I think this was the case at some point, though it may have changed while I wasn't looking.) Try shell sh -c "kill `cat /tmp/xtimer.pid`" or something, does that work? -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message