系统定时任务 crontab

来源:互联网 发布:shake it是什么意思 编辑:程序博客网 时间:2024/05/27 06:51

关于crontab 常用命令:

systemctl status crondcrontab -lcrontab -etail -f file_pathtail -3 file_path

crontab -e 中文件格式:



示例:


解释:



查看crontab 日志:



常见错误:
第三域和第五域代表或操作
注意命令行中% 加\ 
环境变量的使用,不起作用

0 0
原创粉丝点击