创建crontab定时任务报错:0:bad minute, errors in crontab file, can't install

Linux环境,想创建一个定时任务,结果一直报错

[root@host1 ~] crontab test.md

(省略)0:bad minute

errors in crontab file, can't install

搜索的大多数答案都是说定时任务的时间格式不对

但是:crontab -l  > test.md

crontab test.md

重新设置已经生效的定时任务,仍然报同样的错误。。。

查看定时任务的系统日志,发现日志写到一半断掉了

日志中有报错信息,且提示see 'journalctl -xe' for detaiil

[root@host1 ~] journalctl -xe

......省略......

User child is on pid 38111

User child is on pid 38112

Invaild user qyyrbtuoa from 10.0.1.1 port 41494

error: Failed to write to /var/log/btmp: No space left on device

df -h查看吸盘情况

果然/var单独挂的盘已经100%了,磁盘满了

清理磁盘后

定时任务设置成功。。。。。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容