dartsAgeSite

Purpose:

Monitor the age of files in the hold and ready directories of a specified directory and send email notifications if files are older than a certain threshold.

Enter:

dartsAgeSite [site=site] <email=email> [dir=directory]

Where:

site

Optional. Specify the site location of the files to monitor. The default is ctc.

email

Required. Specify the email address of the intended recipients for notifications. 

dir

Optional. Specify the directory to check for old files. The default is “darts_pam”.   

Example:

dartsAgeSite site=bak email=new.user@cummins.com dir=darts_pam
The above command sends emails to new.user@cummins.com if files for the bak site are within the hold directories of darts_pam/PAMdatapoint are older than 1 hour and the files originated at bak.

dartsAgeSite email=new.user@cummins.com
The above command sends emails to new.user@cummins.com if files for the ctc site are within the darts_pam/PAMdatapoint directories are older than 1 hour and the files originated at ctc.

Notes:

The program operates as a continuous process, periodically checking for old files and sending emails during specified hours.

See Also: