Autosys每月工作计划
我正在尝试在 Autosys 中安排一项作业,并且希望该作业每月运行一次。比如说每个月的第五天。您能帮助我们如何在 Autosys 中进行配置吗?
我做了一些研究,发现我们需要在 Autosys 中创建日历。有人可以帮助我们如何在 autosys 中创建和配置这样的日历吗?
I am trying to schedule a Job in Autosys and I would like this job to run once a month. Say, 5th day of every month. Could you please help how we can configure this in Autosys?
I did some research and came to know that we need to create a calendar in Autosys. Could someone please help how we can create and configure such a calendar in autosys?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Autosys 提供的工具创建日历的方法有多种。启动这些工具的命令是
autocal
(这是一个图形编辑器)和autocal_asc
(这是一个基于文本的编辑器)。可执行文件位于 Autosys 根用户目录(例如 /etc/autosys)中。我建议使用图形界面,因为它提供了一些选项,可以让您更轻松。该实用程序运行后,您应该能够创建新日历(文件>新建)。为其命名(例如 5thOfTheMonth),然后选择“编辑”>“应用规则。您可以在此处配置您希望运行作业的月份中的日期以及许多其他选项。
创建并保存日历后,您可以使用
run_calendar
JIL 命令 (run_calendar: 5thOfTheMonth
) 或在 Job Definition > 中指定日历来将作业与其绑定。日期/时间选项图形界面。There are a few ways to create a calendar with tools provided with Autosys. The commands to launch the tools are
autocal
(which is a graphical editor) andautocal_asc
(which is a text-based editor). The executables are available in the Autosys root user directory (e.g. /etc/autosys). I would recommend using the graphical interface, since it gives some options which will make it easier on you.Once the utility is running, you should be able to create a new calendar (File > New). Give it a name (e.g. 5thOfTheMonth), and choose Edit > Apply Rule. Here you can configure the day(s) of the month you wish to run the job on, and many other options.
Once the calendar is created and saved, you can tie a job to it using the
run_calendar
JIL command (run_calendar: 5thOfTheMonth
) or specifying the calendar in the Job Definition > Date/Time Options graphical interface.如果您有一个允许您从文件导入日历的 Autosys Web 门户,您可以在文件中定义扩展日历。对于扩展日历的条件属性,您可以使用
MNTHD#nn
指定一个月中的某一天,其中nn
为第nn
天当月的。扩展日历可以这样定义
,您可以将日历包含为作业的
run_calendar
属性,例如查找更多信息 此处了解延长日历的不同条件。
If you have an Autosys web portal that allows you to import a calendar from a file, you can define an extended calendar inside a file. For the condition attribute of the extended calendar, you can specify a day of the month with
MNTHD#nn
, wherenn
is thenn
th day of the month.The extended calendar can be defined like
and you can include the calendar as the
run_calendar
attribute of your job likeFind more information here on the different conditions for an extended calendar.