Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2000 11:11:51 -0500 (CDT)
From:      David Scheidt <dscheidt@enteract.com>
To:        Joe.Warner@smed.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Netscape Cache Clearing Script
Message-ID:  <Pine.NEB.3.96.1000817104912.56543A-100000@shell-1.enteract.com>
In-Reply-To: <8525693E.00544D24.00@Deimos.smed.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Aug 2000 Joe.Warner@smed.com wrote:

:
:
:Hi,
:
:  This script was designed to work with the C shell.  Does anybody know how
:to make it work with sh?  Any info would be appreciated.
:
:------------------- CUT HERE ------------------------------
:#!/bin/csh
:
:if !( `ps -eu $USER | grep netscape | grep -v grep | sed -e 's/^  *//' -e
:'s/ .*//'` ) then
:        echo
:        echo "Clearing Netscape cache..."
:        \rm -rf ~/.netscape/cache/*
:endif
:
:echo
:echo "Exiting..."

#!/bin/sh

if ! (`ps wxu $USER | grep -q [n]etscape)
	then
	echo "Clearing Netscape cache..."
	rm -rf ~/.netscape/cache/*

fi

echo "exiting..."


Should do it.  
:
:------------------- CUT HERE ------------------------------
:
:
:
:
:To Unsubscribe: send mail to majordomo@FreeBSD.org
:with "unsubscribe freebsd-questions" in the body of the message
:
:




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.1000817104912.56543A-100000>