From owner-freebsd-questions Thu Aug 17 8:26:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.smed.com (smtp.smed.com [12.20.51.11]) by hub.freebsd.org (Postfix) with ESMTP id D54B637B666 for ; Thu, 17 Aug 2000 08:26:16 -0700 (PDT) Received: from smtpgate.shrmed.com (keymaster.smed.com [12.20.51.2]) by smtp.smed.com (Postfix) with ESMTP id 036511621C for ; Thu, 17 Aug 2000 11:26:11 -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 LAA30622 for ; Thu, 17 Aug 2000 11:26:09 -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 11:24:21 -0400 Received: by Deimos.smed.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 8525693E.005479FA ; Thu, 17 Aug 2000 11:22:41 -0400 X-Lotus-FromDomain: SMS To: freebsd-questions@freebsd.org Message-Id: <8525693E.00544D24.00@Deimos.smed.com> Date: Thu, 17 Aug 2000 09:23:06 -0600 Subject: Netscape Cache Clearing Script MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Thanks Joe CLEANUP AT LOGOUT The following c-shell .logout script will clear your Netscape cache. No action will be taken if Netscape is current running. ------------------- 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..." ------------------- CUT HERE ------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message