ZHAO, BING wrote:
Hi:
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): But it only happens when I run the program, there is a chance I will not be running the program for more than a week. And the dir keeps getting larger(downloading files from website), I need those files older than 1 week all gone WITHOUT having to type ./do_it.pl on unix command line. Any idea on this? It seems pretty unreasonle to me, even. Let me know if this is something impossible.
            thank you.

You can do this with a cron job. This is done frequently to keep things up to date on your system. You can set it up to run things from anywhere from every minute, to once a year (I think that's the limit of the scope of the cron time fields, I don't believe there is a year field). You will want to look at the cron and crontab man pages.

                                                        Jessica

--
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