当前位置:网站首页>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
边栏推荐
- 即构「畅直播」,全链路升级的一站式直播服务
- 期货反向跟单靠谱吗?
- 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.
- Preliminary understanding of C #
- MySQL environment variable configuration tutorial
- 2022 love analysis · panoramic report of it operation and maintenance manufacturers
- vim 从嫌弃到依赖(19)——替换
- Win10 how to manage startup items?
- Redis transactions
- 【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法
猜你喜欢

oracle怎样将字符串转为多行

盲测调查显示女码农比男码农更优秀

Blind survey shows that female code farmers are better than male code farmers
![[10. difference]](/img/15/ffd93da75858943fe887de1718e0f6.png)
[10. difference]

MySQL索引详解

05 observer mode
![[c++ primer notes] Chapter 4 expression](/img/cb/d543dd1f461653e9adf399b42d1d26.png)
[c++ primer notes] Chapter 4 expression

Redis master-slave replication and sentinel mode

关联GIS:条条道路通UE5城
![[batch dos-cmd command - summary and summary] - parameters%0,%1,%2,%[0-9],%0-9 in the batch command and batch command parameter position switching command shift, operator% usage in the DOS command](/img/05/19299c47d54d4ede95322b5a923093.png)
[batch dos-cmd command - summary and summary] - parameters%0,%1,%2,%[0-9],%0-9 in the batch command and batch command parameter position switching command shift, operator% usage in the DOS command
随机推荐
(note) Anaconda navigator flashback solution
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.
Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率
Redis transactions
Redis的事务
Code source AQS sous - jacent pour la programmation simultanée juc
PayPal account has been massively frozen! How can cross-border sellers help themselves?
什么是期货反向跟单?
Five basic types of redis
After working in a large factory for ten years with an annual salary of 400000 yuan, I was suddenly laid off. If the company wanted to abandon you, it wouldn't leave any kindness
【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法
Lvgl GUI guide porting code to stm32
If xn > 0 and X (n+1) /xn > 1-1/n (n=1,2,...), Prove that the series Σ xn diverges
【云原生】2.3 Kubernetes 核心实战(上)
Experience record of Luogu's topic brushing
The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
[batch dos-cmd command - summary and summary] - how to distinguish the internal command and external command of CMD, and the difference between CMD command and run (win+r) command,
MATLAB小技巧(19)矩阵分析--主成分分析
洛谷刷题心得记录
关于el-date-picker点击清空参数变为null的问题