0

i have to create a autosys job to monitor another autosys long running job. the monitoring job should create an alert if the other job is running for more than 10 minutes.

for ex. A1 autosys job will run and create a log file. The new monitoring job should check the log file time stamp created date and time and check the log file is running for more than 10 minutes. if the log file created within 1o minutes then it is ok else create an alert.

Could you plese suggest if there any commond to find this.

Thanks in advance os linux red hat

4

2 回答 2

1

使用(作业定义)MAXRUN中的设置JIL

max_run_alarm: 10

无需为此创建另一个作业来监控。

于 2012-12-13T20:52:36.490 回答
0

要查找目录是否包含超过 10 分钟前修改过的文件,请使用

find /path/to/dir/ -type f -mmin +10 -printf "found" |grep -q found
if [[ $? == 0 ]];then do_alert;fi
于 2012-12-13T08:29:57.733 回答