crontab用法小结(Crontab usage summary).doc

  1. 1、本文档共17页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
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.

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档