如何创建一个仅在X小时的周末运行的Autosys作业



我需要创建一个只有在周六和周日下午11:00在周六和周日运行的Autosys作业。CST以下是我根据在线看到的脚本。

我是新来的,其他人可以检查并确认是否还有其他可能引起某个问题的事情?

insert_job:name job_type:cmd

命令:/directory/zzz/xxx.ksh/directory/xxx/xxx

机器:zzz

所有者:用户

权限:

date_conditions:1

days_of_week:sa,su

start_mins:5,20,35,50

run_window:&quot" quran_window

条件:S(xxx_xxx_control)

描述:&quot xxx文件&quot'

std_out_file:$ dummy.out

std_err_file:$ dummy.err

alarm_if_fail:1

个人资料:/directory/directory.profile

确定您的工作将运行的几天看起来正确:

date_conditions: 1
days_of_week: sa,su

但是,您确定工作何时运行的障碍:

start_mins: 5,20,35,50 # specifies how many minutes after the top of an hour a job starts
run_window: "12:00 , 23:00"

正如您的JIL现在一样,这项工作将每小时4次运行11个小时:

12:05,12:20,12:35,12:50,13:05,13:20,...,22:35和22:50

您很可能需要特定 start_times

start_times: "12:00, 23:00"

start_times start_mins 无法在同一jil中定义, run_window 在这里是无关的,因此可以沿着它省略使用 start_mins

您还可以查看 NOUD_START_TIMES 属性,如果您的作业未按时开始。

最新更新