File date attribute

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Sat Jan 28 13:54:23 CET 2006


Bruce R Graham enlightened us with:
> Run a script in cron.daily. The script should check a timestamp
> placed by the last occurrence of that script. Then check my home
> folder for files modified between that timestamp and now. Then send
> those files off to gmail.
> I have most of the pieces in place, except I can't find out how to
> retrieve the date modified attribute of a file. Does anybody know
> how to do that?

man find. You can even tell it to list all files older than a
reference file.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list