Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2000 16:33:33 -0600
From:      Joe.Warner@smed.com
To:        freebsd-newbies@freebsd.org
Subject:   Netscape Cache Clearing Script
Message-ID:  <8525693E.007BB42B.00@Deimos.smed.com>

next in thread | raw e-mail | index | archive | help


Here's a great script you could create using Vi or your favorite text
editor that clears out Netscape's cache.  I created it with Vi, made it an
executable and after running it, it took my space utilization from 50% down
to 48% in a heartbeat.

-----------------------------------CUT
HERE---------------------------------------------------------------------------------------------


#!/bin/sh

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

fi

echo "exiting..."


----------------------------------CUT
HERE-----------------------------------------------------------------------------------------------

I get those UNIX Hot Tips http://www.ugu.com/sui/ugu/show?tip.today in my
email every day from UNIX GURU UNIVERSE and this was one of them.  The
original script was made to work
with the C shell but thanks to some help I got from David Scheidt, it now
works with sh!

P.S. - I know it would probably be easier to just turn off the caching in
Netscape but...scripts can be fun.  8^)

Cheers

Joe




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8525693E.007BB42B.00>