RE: file last modified

2002-09-27 Thread JGONCALV
Hi, i wonder how i can get only the files that are modified less than a hour for exemple in a directory. How can i do this in Perl? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: file last modified

2002-09-27 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi, i wonder how i can get only the files that are modified > less than a hour for exemple in a directory. > How can i do this in Perl? Use stat or lstat to get the mtime and compare it to the current time. The times used are in seconds so one hour would be 3600 se

File last modified time

2006-07-07 Thread Omega -1911
Hey gang! I am trying to update a script so that it is not so resource (CPU) intensive. Background: 1. The script has to open a rather large number of files (100,000). 2. Instead of opening all of them, I am trying to only open those files where the file was actually MODIFIED not just accessed

RE: File last modified time

2006-07-07 Thread Timothy Johnson
ent of the array returned by the stat function, which is the file modified time and make sure that it is newer than 1200 seconds (20 minutes) ago. -Original Message- From: Omega -1911 [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 5:08 PM To: Beginners Perl Subject: File last modif

Re: File last modified time

2006-07-09 Thread Chasecreek Systemhouse
On 7/7/06, Omega -1911 <[EMAIL PROTECTED]> wrote: 1. The script has to open a rather large number of files (100,000). 2. Instead of opening all of them, I am trying to only open those files where the file was actually MODIFIED not just accessed within the last 20 minutes. The implementation log