我安装了一个带有centos 7 incron的新虚拟机。
我试着让它工作,但一个简单的命令什么也做不了。
incrontab -e:
/home/test IN_CLOSE_WRITE touch "$@/$#.new"没有什么特别事情
当我查看日志cron时,我看到了以下内容:
May 13 11:40:57 Minions incrond[2785]: (root) CMD (touch "/home/test/test.new")但不会在目录中创建任何内容
[root@Minions test]# ll
total 0
-rw-r--r--. 1 root root 0 13 mai 11:40 test你知道哪里出了问题吗?
发布于 2016-05-16 13:10:32
我只是像这样引用:
/home/test IN_CLOSE_WRITE touch $@/$#.new发布于 2018-09-13 01:38:06
这是相当古老的但是..。可能您的incrond服务没有运行。
# systemctl enable incrond.service
# systemctl start incrond.servicehttps://stackoverflow.com/questions/37206918
复制相似问题