From owner-freebsd-newbies Thu Aug 17 18:53: 8 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.129.65]) by hub.freebsd.org (Postfix) with ESMTP id EA69F37BC36 for ; Thu, 17 Aug 2000 18:50:58 -0700 (PDT) Received: from smtp.smed.com (smtp.smed.com [12.20.51.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 286526E40D3 for ; Thu, 17 Aug 2000 15:33:19 -0700 (PDT) Received: from smtpgate.shrmed.com (keymaster.smed.com [12.20.51.2]) by smtp.smed.com (Postfix) with ESMTP id 8A03816174 for ; Thu, 17 Aug 2000 18:32:47 -0400 (EDT) Received: from iesa14.shrmed.com (iesa14.shrmed.com [10.1.99.114]) by smtpgate.shrmed.com (8.9.3/8.9.3) with ESMTP id SAA19188 for ; Thu, 17 Aug 2000 18:32:47 -0400 From: Joe.Warner@smed.com Received: from Deimos.smed.com (unverified) by iesa14.shrmed.com (Content Technologies SMTPRS 2.0.15) with SMTP id for ; Thu, 17 Aug 2000 18:32:43 -0400 Received: by Deimos.smed.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 8525693E.007BB5AD ; Thu, 17 Aug 2000 18:31:14 -0400 X-Lotus-FromDomain: SMS To: freebsd-newbies@freebsd.org Message-Id: <8525693E.007BB42B.00@Deimos.smed.com> Date: Thu, 17 Aug 2000 16:33:33 -0600 Subject: Netscape Cache Clearing Script MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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