Computing.Net > Forums > Unix > Script to find if file is to old

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Script to find if file is to old

Reply to Message Icon

Name: dhines
Date: November 3, 2003 at 07:44:06 Pacific
OS: AIX
CPU/Ram: 1GB
Comment:

Hi All,
I need to write a script to find out if a specific file is older than an hour, if it is then the script has to email me to alert me.

Does anyone know how to do this.

Thanks

Dave.



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: November 4, 2003 at 02:07:25 Pacific
Reply:

FAQ,

search for "find touch" in the unix section
and you will find a lot of answers.

No RISK no fun
Frank


0

Response Number 2
Name: Danny Larouche XL2
Date: November 4, 2003 at 07:31:12 Pacific
Reply:

VAR=`find /directory/myfile -mmin +60 -print|wc -l`

if $VAR=" 1"....

If you are willing to pay, i will complete the script, otherwise you can do it by yourself.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Script to find if file is to old

function to test if file is open www.computing.net/answers/unix/function-to-test-if-file-is-open/7339.html

check if file is www.computing.net/answers/unix/check-if-file-is-/4937.html

A script to telnet a service www.computing.net/answers/unix/a-script-to-telnet-a-service/6542.html