>              I need to delete files older than one week old, 
> I know how to code that(with the help of many kind people on 
> this list):

Here is a single command that will blow files older than 48 hours away
from given directory. You can put as many of these in a single sh script
as you want, then put it in your crontab:

# find /home/me/mydirectory -mtime +48h -type f | xargs rm

Your crontab entry might look like this:

20 22 * * * /home/steve/scripts/rmmail.pl

Which would run the script at 10:20 PM, every day.

HTH,

Steve


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to