首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >crond配置

crond配置

作者头像
力哥聊运维与云计算
发布于 2019-06-28 12:42:26
发布于 2019-06-28 12:42:26
1.2K0
举报

 crond配置

crond有两个文件

1  /etc/crontab 是系统级别的调度文件

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

HOME=/

# For details see man 4 crontabs

# Example of job definition:

# .---------------- minute (0 - 59)

# |  .------------- hour (0 - 23)

# |  |  .---------- day of month (1 - 31)

# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...

# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat

# |  |  |  |  |

# *  *  *  *  * user-name command to be executed

2  /var/spool/cron/用户 为用户级别的文件,比如/var/spool/cron/root,可以使用crontab -e编辑

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2011/12/28 ,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档