On 12/05/2012 02:15 PM, Curt Lundgren wrote:
I wrote a Perl script a few years ago that deletes files from a
directory that are older than n number of days.  We generally set n to
30 days, but you can set it to be anything you want.

Curt,

I am able to delete files like individual log files or print files that are discrete files. But /var/spool/mail/root has all of the messages to root in one file. We run a cron like:

find /somedir/some_pattern* -mtime +31 -type f | xargs rm -f

Howard

--
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to