new_tables
Purpose:
-
Identify calibration tables newer than a specified age.
An email is sent to the specified address listing every calibration table (*.tbl) in the /cell/tables/ directory that is newer than the specified age.
If the email_address argument is not specified, the program will send an email to a list of people specified within the /specs/trv_specs.nnn file under the @EMAIL keyword.
Enter:
-
new_tables <age_in_days> <email_address>
Where:
-
age_in_days
Specify the calibration table age in number of days to determine whether the calibration table file is newer since the specified age.
email_address
Specify the recipient of the email to be sent containing the list of tables newer than the age_in_days.
Example:
-
new_tables 1 len@ctcqnx4.ctg.cummins.com
The above example sends an email to len@ctcqnx4.ctg.cummins.com containing a list of calibration tables that are newer than 1 day.new_tables 1000
The above example sends emails out to the email addresses from the @EMAIL keyword of the /specs/trv_specs.nnn file. The email message will contain a list of calibration tables that are newer than 1000 days.
Notes:
-
This process can be setup to run from cron so that a particular person is notified if files have been changed.