* */2 * * * /home/xxx.csh。
这样行吗?
如何使用crontab命令,设置每2个小时执行一次脚本
-
- 帖子: 126
- 注册时间: 2012-04-06 15:55
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 如何使用crontab命令,设置每2个小时执行一次脚本
应该是
http://stackoverflow.com/a/9439129
http://stackoverflow.com/questions/6423 ... ry-2-hours
http://stackoverflow.com/questions/2250 ... ry-3-hours
http://serverfault.com/questions/43510/ ... ry-2-hours
代码: 全选
0 */2 * * * /home/xxx.csh
参考onlylove 写了: 如果第一个分钟是*的话,貌似是每个偶数小时的每分钟执行
http://stackoverflow.com/a/9439129
http://stackoverflow.com/questions/6423 ... ry-2-hours
http://stackoverflow.com/questions/2250 ... ry-3-hours
http://serverfault.com/questions/43510/ ... ry-2-hours
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户