S
Stu
Can somebody provide me with a perl funcion that accepts
(full path of file, number of minutes, and operation) and checks the
last access time of a file.
For example, if I pass the following:
c:/temp/testfile 5 GT
The function will check the last access time of the file c:/temp/
testfile and see if it is greater than 5 minutes old.
If I pass c:/temp/testfile 6 LE
The function will check the last access time of the file c:/temp/
testfile and see if it is less than or equal to 6 minutes old.
If the anwer is yes I want to return 1 for TRUE else return 0 for
false.
Thanks in advance for all that answer this post
I
(full path of file, number of minutes, and operation) and checks the
last access time of a file.
For example, if I pass the following:
c:/temp/testfile 5 GT
The function will check the last access time of the file c:/temp/
testfile and see if it is greater than 5 minutes old.
If I pass c:/temp/testfile 6 LE
The function will check the last access time of the file c:/temp/
testfile and see if it is less than or equal to 6 minutes old.
If the anwer is yes I want to return 1 for TRUE else return 0 for
false.
Thanks in advance for all that answer this post
I