For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2006 > Newbie needs some help w/ files/dates ...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Newbie needs some help w/ files/dates ...
meisenzahl@gmail.com

2006-01-27, 6:57 pm

I'm new to this list. ;-)

About 5 years ago I worked my way to the O'Reilly Perl for Win32 book,
but haven't used it since. I have a need to write a Perl app that will
check the timestamps of several known files in known locations. If the
date/time of any of the files is not the current date, send email to a
known list of recipients.

Can anyone get me started on how to check the date/time stamp of a file
and compare it to the current day?

Thanks very much in advance!

Chris
http://amateureconblog.blogspot.com/

Paul Lalli

2006-01-27, 6:57 pm

meisenzahl@gmail.com wrote:

> About 5 years ago I worked my way to the O'Reilly Perl for Win32 book,
> but haven't used it since. I have a need to write a Perl app that will
> check the timestamps of several known files in known locations. If the
> date/time of any of the files is not the current date, send email to a
> known list of recipients.
>
> Can anyone get me started on how to check the date/time stamp of a file
> and compare it to the current day?


Fire up your command shell and run:
perldoc -f -M
perldoc -f localtime
perldoc -f time

Paul Lalli

Speedmaster

2006-01-27, 6:57 pm

Thanks Paul!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com