From owner-freebsd-questions Thu Aug 17 11:46:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.129.65]) by hub.freebsd.org (Postfix) with ESMTP id 50C8637B729 for ; Thu, 17 Aug 2000 11:46:56 -0700 (PDT) Received: from mail.enteract.com (mail.enteract.com [207.229.143.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B44DD6E3ED1 for ; Thu, 17 Aug 2000 11:16:13 -0700 (PDT) Received: from shell-1.enteract.com (dscheidt@shell-1.enteract.com [207.229.143.40]) by mail.enteract.com (8.9.3/8.9.3) with SMTP id NAA76356; Thu, 17 Aug 2000 13:16:12 -0500 (CDT) (envelope-from dscheidt@enteract.com) Date: Thu, 17 Aug 2000 13:16:12 -0500 (CDT) From: David Scheidt To: Joe.Warner@smed.com Cc: freebsd-questions@freebsd.org Subject: Re: Netscape Cache Clearing Script In-Reply-To: <8525693E.0063B576.00@Deimos.smed.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 17 Aug 2000 Joe.Warner@smed.com wrote: : : :David, : : Thanks for your help. I created the script, saved it and set it to be :an executable but now, when I run it while logged in as a regular user I :get this message: : :(I named the script "clrcache") : :./clrcache: 15: Syntax error: Unterminated quoted string : :..and as root: : :Unmatched : :Here's what my script now looks like: : :#!/bin/sh : :if ! ('ps wxu $USER | grep -q [n]etscape) this should be if ! (`ps wxu $USER | grep -q [n]etscape`) note that the quote mark is ` not '. And that there are two of 'em. Regards, David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message