【问题标题】:How to create an autosys job that runs on a weekend only at X hours如何创建仅在周末 X 小时运行的 autosys 作业
【发布时间】:2016-12-09 20:18:41
【问题描述】:

我需要创建一个仅在周六和周日中午和晚上 11:00 运行的 autosys 作业。科技委 下面是我根据网上看到的写的脚本。

我是新手,请其他人检查并确认我是否缺少任何其他可能导致问题的东西?

插入作业:名称作业类型:CMD

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

机器:ZZZ

所有者:用户

权限:

日期条件:1

days_of_week: sa,su

start_mins: 5,20,35,50

run_window: "12:00 , 23:00"

条件:s(XXX_XXX_CONTROL)

描述:“拉取 xxx 个文件”

std_out_file: $dummy.out

std_err_file: $dummy.err

alarm_if_fail: 1

个人资料:/directory/directory.profile

【问题讨论】:

    标签: unix automation autosys jil


    【解决方案1】:

    您确定作业将在哪几天运行的块看起来是正确的:

    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_timesstart_mins 不能在同一个 JIL 中定义,而 run_window 在这里是无关的,所以可以省略start_mins

    如果您想在工作未按时开始时发出警报,还可以查看 must_start_times 属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-19
      相关资源
      最近更新 更多