Date: Thu, 17 Aug 2000 09:23:06 -0600 From: Joe.Warner@smed.com To: freebsd-questions@freebsd.org Subject: Netscape Cache Clearing Script Message-ID: <8525693E.00544D24.00@Deimos.smed.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8525693E.00544D24.00>
