pamAgeSite

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 2 hours.

Enter:

pamAgeSite [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 to receive notifications.

dir

Optional. Specify the directory to search for old files. The default is PAMdatapoint.

Example:

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

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

Notes:

The program runs as a background service and only sends emails between 7:00 and 17:00.

See Also: