- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、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
- CR快捷键(CR shortcuts).doc
- CS5快捷键(CS5 shortcuts).doc
- CSSDIV做导航条.doc
- CT结肠成像(CT colonic imaging).doc
- CT新的(Computed tomography (CT) new).doc
- Cypress USB驱动程序的几个版本(Several versions of the Cypress USB driver).doc
- cv简历英语词汇(CV resume English vocabulary).doc
- C照+知识(C photography + knowledge).doc
- C语言单元作业(C language unit assignments).doc
- char、varchar、text、ntext、bigint、int、smallint、tinyint和bit的区别及数据库的数据类型(Char, varchar, text, ntext, bigint, int, smallint, tinyint and bit, and database data types).doc
最近下载
- 151页-【低空经济】低空无人机公共测试场与验证基地设计方案.pdf
- 理想 RISO 9050 7050 3050 7010 3010 闪彩印王中文技术维修手册 后面可以参考理想闪彩印王 EX7200 EX9050 EX9000 EX7250 系列中文维修手册 .pdf VIP
- 生物酶解技术.pptx VIP
- “素养导向”初中物理大单元教学策略及案例.docx VIP
- 小学四年级综合实践活动《衣服巧收纳》公开课课件.pptx VIP
- 公司建设项目全过程造价咨询工作规范.doc VIP
- 教学进度计划表.pdf VIP
- 直肠癌放射治疗靶区勾画.ppt
- 软件工程项目造价技术规范.pdf VIP
- 2025年左玉辉-环境学.pptx VIP
文档评论(0)