- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
crontab用法小结(Crontab usage summary)
crontab用法小结(Crontab usage summary)
Crontab usage summary
Function: the system automatically performs an operation or task at a specified time.
Implemented by the cron daemon, the cron process is awakened every minute to see if there is an order in the crontab that needs to be executed.
Solaris is basically the same as AIX
Command format:
Crontab -e
Edit your crontab file, and if not, create a new crontab file
Crontab l.
Display your crontab file
Crontab -r
Delete your crontab file
Crontab -v
Show the time when you last modified the crontab file (only a few systems support this command)
[note 1: crontab - e does not start vi
Solution: use the EDITOR environment variable to specify the crontab EDITOR, and if you want to edit with vi, the command is as follows:
# EDITOR = vi
# export EDITOR
If it is C shell, $setenv EDITOR vi
Note 2: crontab - e automatically enables modified timed tasks;
Note 3: modify the crontab of the user. If you want to make it effective, you do not need to restart the cron process. Just use the crontab filename.
Note 4: the name of the user can be used after the command, indicating that the crontab file of the user is edited and displayed, etc., crontab - e oracle;
]
Crontab file syntax
* * * * * * * command to be executed
-- -- --
| | | | |
| | | | + - week 1-7 (Monday = 1)
| | | + -- -- -month (1-12)
| | + -- -- -day (1-31)
| + -- -- -- -time (0-23)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Note 1: do not leave the file blank at the end, or think that the end of the file will end an exception
Note 2: the timing task does not execute the specified script, but it is normal to execute the script manually
Solution: when crontab executes, the environment variable is missing, the user environment variable of the script can be added to the script correctly, or the users profile is executed at the beginning of the script.
]
Example:
1.
您可能关注的文档
- 部分药理学笔记(Some pharmacological notes).doc
- 部学习俊波讲话心得(I have learned a lot about junbo).doc
- 超声造影(Ultrasonic imaging).doc
- 采油工程(Production engineering).doc
- 钓鱼场所(Fishing places).doc
- 采用Oracle企业绩效管理融合新版本实现卓越管理(Adopt Oracle enterprise performance management to integrate new version to achieve excellent management).doc
- 钓鱼绝密技巧(Fishing top-secret skill).doc
- 钓鱼饵料配方藏有我千河牛X饵(The recipe for fishing bait has my X bait).doc
- 钢管混凝土质量的无损检测(Nondestructive testing of the quality of steel tube concrete).doc
- 钙制剂治疗原发性骨质疏松症的重要性(The importance of calcium preparation for primary osteoporosis).doc
- Recycle1Thefashionshow(课件)-人教PEP版(2012)英语四年级下册.pptx
- 实际问题与反比例函数课时3课件-人教版九年级数学下册.pptx
- 高三一轮复习课后习题化学考点规范练32烃的衍生物.docx
- 应急计划程序文件.doc
- 金融市场学-第十章-利率机制-课件.ppt
- 福建省部分地市校2025届高中毕业班3月质量检测历史试题参考答案及评分标准.docx
- 2024-2025学年上学期期中联考初三年语文科试卷.docx
- 二〇二三年“领军计划班 ”招生综合素质测试历史试题.docx
- (最新)25年秋人教版四年级数学上册大数的认识15.单元复习提升.pptx
- (最新)25年秋人教版四年级数学上册5.亿以内数的大小比较.pptx
最近下载
- 长期卧床患者的体位护理技巧.pptx VIP
- JBT14159.3-2022 空气分离设备能效限额第3部分:液化设备.pdf VIP
- 《民用建筑设计通则》图示.docx VIP
- 灭火应急疏散预案.doc VIP
- 铁路内燃、电力司机考试题库.doc VIP
- 新概念英语第一册 Lesson 55-56 课件.ppt VIP
- 2025AI+BI峰会:DeepInsight Copilot 演进史以及未来探索.pdf VIP
- 《临床药学文献阅读汇报抗感染粘菌素在治疗鲍曼不动杆菌感染vap中的应用》课件模板.ppt VIP
- 2025年福建公需课答案.pdf VIP
- 2020四川园林绿化工程说明及计算规则.pdf VIP
文档评论(0)