dkaplowitz has asked for the wisdom of the Perl Monks concerning the following question:
but I'm not hip enough to really know how to use something like stat() and another function to say if mdate is 360 seconds older than the present moment, create this file in this directory Thanks for any clues. Dave#!/bin/perl -w use strict; chdir 'C:/devl/bin' or die "Arghh!!! $!"; opendir(ROOT, ".") or die "Arghh!!! $!"; my @sorted_files= map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { [ -M $_, $_] } readdir( ROOT); print join "\n", @sorted_files; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: script for scanning folder and sending a warning if a file within it is older than 5 minutes
by Limbic~Region (Chancellor) on Mar 19, 2004 at 18:54 UTC | |
by dkaplowitz (Novice) on Mar 19, 2004 at 19:18 UTC | |
by dkaplowitz (Novice) on Mar 24, 2004 at 14:44 UTC | |
|
Re: script for scanning folder and sending a warning if a file within it is older than 5 minutes
by dkaplowitz (Novice) on Mar 19, 2004 at 18:49 UTC |