Monday, March 24, 2008

deleting UCSC temp files

Following command put as a cron job deletes all files not accessed in last 24 hours

% /usr/bin/find /var/www/trash -atime +1 | /usr/bin/xargs rm

This prevents the disk from filling up with unwanted old files. This works on Linux!