in reply to script that logs and deletes old windows files

Heres something Ive used in the past - you'll have to test it and probably modify it somewhat, but this should give you a good start.
use strict; use warnings; use POSIX qw(strftime); my $modtime_seconds = ( stat($file) )[9]; $modtime_seconds = $modtime_seconds - 86400; my $modtime = ( ! defined ($modtime_seconds) ) ? "null" : POSIX::strftime( "%B %d", $modtime_seconds, 0, 0, 0, 0, 0, 0, 0, + 0 );


update
or find /yourdir -type f -mtime +5 -exec rm -rf {} \;


Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson