当前位置:网站首页>Modify the contents of /etc/crontab file directly, and the scheduled task will not take effect
Modify the contents of /etc/crontab file directly, and the scheduled task will not take effect
2022-06-27 08:25:00 【Yabingshi】
direct writing /etc/crontab Document content is invalid .
service crond reload/restart It doesn't work .
direct writing crontab When you file , You need to specify the executing user , And the top environment variable Can't delete .
Such as :
# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
*/1 * * * * root date > /root/test.txt
If no running user is specified in the scheduled task , Such as :
*/1 * * * * date > /root/test.txt
This command will not be executed .
Reproduced in :https://blog.51cto.com/zhangxingnan/1609879
边栏推荐
- MySQL index details
- 2022.06.26(LC_6101_判断矩阵是否是一个 X 矩阵)
- Redis主从复制以及哨兵模式
- AQS underlying source code of concurrent programming JUC
- Futures reverse Documentary - training for traders
- Closure problem
- Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率
- L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.
- Associated GIS: all roads lead to ue5 City
- Ue5 magic power - POI solution
猜你喜欢
Redis的持久化机制
vim 从嫌弃到依赖(20)——global 命令
(原创)自定义Drawable
Import and export database related tables from the win command line
Redis installation under Linux
Rust async: SMOL source code analysis -executor
Blind survey shows that female code farmers are better than male code farmers
2022 love analysis · panoramic report of it operation and maintenance manufacturers
RockerMQ消息发送与消费模式
c#的初步认识
随机推荐
(原创)自定义Drawable
[12. maximum continuous non repeating subsequence]
参考 | Win11 开启热点之后电脑不能上网
"Short video" Linxia fire rescue detachment carries out fire safety training
ServletConfig与ServletContext
2022 love analysis · panoramic report of it operation and maintenance manufacturers
Zabbix部署说明(Server+Win客户端+交换机(H3C))
即构「畅直播」,全链路升级的一站式直播服务
期货反向跟单靠谱吗?
sql注入之order by注入
[daily practice] realization of product card animation effect
2022.06.26(LC_6101_判断矩阵是否是一个 X 矩阵)
RockerMQ消息发送模式
Etcd tutorial - Chapter 5 etcd etcdctl usage
[notes on c++ primer] Chapter 3 string, vector and array
Game asset reuse: a new way to find required game assets faster
粗读DS-TransUNet: Dual Swin Transformer U-Net for Medical Image Segmentation
【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo
Win10 how to manage startup items?
If xn > 0 and X (n+1) /xn > 1-1/n (n=1,2,...), Prove that the series Σ xn diverges