From owner-freebsd-questions Wed Mar 13 19:13:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from nycsmtp2out.rdc-nyc.rr.com (nycsmtp2out.rdc-nyc.rr.com [24.29.99.227]) by hub.freebsd.org (Postfix) with ESMTP id B55C837B400 for ; Wed, 13 Mar 2002 19:13:28 -0800 (PST) Received: from scott1.nyc.rr.com (24-168-24-239.nyc.rr.com [24.168.24.239]) by nycsmtp2out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with ESMTP id g2E3Bblu020326; Wed, 13 Mar 2002 22:11:37 -0500 (EST) Message-Id: <5.1.0.14.0.20020313221105.00c21c08@pop-server.nyc.rr.com> X-Sender: scottro@pop-server.nyc.rr.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 13 Mar 2002 22:13:25 -0500 To: "Joe & Fhe Barbish" From: Scott Subject: RE: Script to hangup ppp? Cc: "FBSDQ" In-Reply-To: References: <20020314144909.B83799@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 > > >-----Original Message----- >From: Jonathan Chen [mailto:jonc@chen.org.nz] >Sent: Wednesday, March 13, 2002 8:49 PM >To: Joe & Fhe Barbish >Cc: FBSDQ >Subject: Re: Script to hangup ppp? > >On Wed, Mar 13, 2002 at 08:10:50PM -0500, Joe & Fhe Barbish wrote: > > No that does not work. > > It does not like the 'cat /var/run/tun0.pid' part. Gives a message >argument > > should be jobs or process id. > >Use backticks. ie ` . Not quotes, ie '. At 22:08 2002/03/13 -0500, Joe & Fhe Barbish wrote: Thanks to every one who help out on this question. I found the backtick, it's on the same key with ~. I tested the script and it work now. In bash at least (not sure about other shells--these days I seem to only use bash) you can use, instead of backticks, $( ) For touch typists, this might be easier--it is for me, simply because one types ( ) and $ more often than one does a backtick. Ah well, that's my bit of trivia for tonight. Scott Robbins To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message