Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux工作调度的种类: at、cron #36

Open
hehongwei44 opened this issue Nov 8, 2015 · 1 comment
Open

Linux工作调度的种类: at、cron #36

hehongwei44 opened this issue Nov 8, 2015 · 1 comment

Comments

@hehongwei44
Copy link
Owner

Linux工作调度的有以下的两种调度方式:

  • 一种是例行性的,就是每隔一定的周期要来办的事项;
  • 一种是突发性的,就是这次做完以后就没有的哪一种。(如计算机大降价)

这两种方式分别对应了linux中at与crontab这两个命令

  • at: at是个可以处理仅执行一次就结束调度的命令,不过要执行at时,必须要有atd这个服务的支持才行。在某些新版的发行版中,atd可能默认并没有启动,那么at这个命令就会失效。
  • crontab: crontab这个命令所设置的工作将会循环一直进行下去。可循环的时间为分钟、小时、每周、每月或每年等。crontab除了可以使用命令执行外,也可编辑/etc/crontab来支持。至于让crontab可以生效的服务则是crond这个命令。
@hehongwei44
Copy link
Owner Author

下面会介绍at与cron的实践。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant