Request some help please
Anthony Ventimiglia
ant at mongrel.dogpound
Sat Aug 24 23:42:53 EDT 2002
More information about the Python-list mailing list
Sat Aug 24 23:42:53 EDT 2002
- Previous message (by thread): Request some help please
- Next message (by thread): ANN: empy 1.3 -- Embed Python in template text as markup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 24 Aug 2002 13:09:20 -0700, chen lee <clob at ber.com> wrote: > I need to be able to watch a linux directory and remove all file that > are over 4 housr old . Is this possoble with python or should I just > use perl to do it? If you're on a *nix system, I'd use find in a cron job, the following line in your crontab should do it: 0 */1 * * * find /dir -amin +4 -exec rm {} \; That will run every hour and remove every file in /dir that hasn't been accessed in the last 4 hours.
- Previous message (by thread): Request some help please
- Next message (by thread): ANN: empy 1.3 -- Embed Python in template text as markup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list