On 3/2/11 Wed Mar 2, 2011 8:34 AM, "newbie01 perl"
scribbled:
> Hi all,
>
> Am wanting to get some advise on how to write this Perl script.
>
> I have a backup directory that I have to check for the existence of file/s
> and if the latest file that exist there is 2 days old, that means I have
On 11-03-02 12:31 PM, shawn wilson wrote:
Seems like more of a pain for a modest gain in speed to me. I like find and
dt because its quick and easy. Either way though.
No, because you don't have to worry about daylight-savings time or
switching time zones. Seconds from the epoch is the same o
On Mar 2, 2011 12:16 PM, "Shawn H Corey" wrote:
>
> On 11-03-02 12:12 PM, shawn wilson wrote:
>>
>> First, use File::Find to get your info (or you could use system( ls -l )
and
>> split - either way). To compare your time stamps, use DateTime and do dt1
-
>> dt2
>>
>
> No. If you can do all your
On 11-03-02 12:12 PM, shawn wilson wrote:
First, use File::Find to get your info (or you could use system( ls -l ) and
split - either way). To compare your time stamps, use DateTime and do dt1 -
dt2
No. If you can do all your calculations using seconds from the epoch,
then do so. Only conve
First, use File::Find to get your info (or you could use system( ls -l ) and
split - either way). To compare your time stamps, use DateTime and do dt1 -
dt2
On 11-03-02 11:34 AM, newbie01 perl wrote:
My main hurdle is the file timestamp and date arithmetic part. Frm
Google'ing, am leaning towards using stat which am hoping will work on both
Unix and Windows.
Some guidance will be much appreciated. Thanks in advance.
Use the stat function to get th
Hi all,
Am wanting to get some advise on how to write this Perl script.
I have a backup directory that I have to check for the existence of file/s
and if the latest file that exist there is 2 days old, that means I have a
problem and had to send an email notification.
To illustrate if, for examp