Hi,
I posted here a while back, asking for help on a script to delete
users' CACHE files, the location of these being $HOME/USERS/DEFAULT/CACHE
What I wanted to do, wasn't to delete the CACHE directory, but to remove
the files *within* the directory.
After a lot of help from various folk around here, I came up with this:
#!/bin/sh
LOCATION=USERS/DEFAULT/CACHE/
for LOCATION in `ls /home` ; do
rm /home/$LOCATION/USERS/DEFAULT/CACHE/*
done
I installed that into /usr/local/bin, ran it, and hey presto, saw
/home go down to 75% in a matter of seconds.
Today, I come in, and find a problem report, saying that /home is
once more at 100%. I check the disk, and sure enough, it's full.
I find this strange, as the script is in root's crontab, but just
to be sure, I connect, and run the script manually.
I then run a find for any files still in the users' CACHE, and see that
some of the them have not been deleted !!
Could someone shed some light on why a script that worked before,
should suddenly stop working ..?
Thanks.
--
Desmond Coughlan Network Engineer Forum des Images Paris France
***************************************************************************
The views expressed in these articles are my own, and do not necessarily
reflect the views of the Forum des Images.
***************************************************************************