I need a solution to my problem either in Linux or Windows
1. A script to run as a cron job to check the date/time of certain files located in certain directories and if the files are older than 24 hours to send an alert email to me.
2. Windows scheduled tasks monitor to alert me via email if task status contains errors or did not run properly.
Below is the scenario:
there is a utility that creates these files and uploads them to this server via FTP, but the utility is buggy and runs on Windows. It runs at 4:30 every day from the "scheduled tasks" in Windows 2000 server but once in a while it crashes while parsing the data (can't handle exceptions :-) )
I can catch the problem in the "scheduled tasks" if the utility crashes and outputs errors, but have not been able to find an application / VBS script that sends emails if a job ends abnormally
I am no programmer and it seems like a simple script in linux should suffice to notify me, so I can correct the problem. Any recommandation for either solution (Windows or Linux) can help.
Closest thing for windows is at this link: http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/24594/24594.html