centos 7 incronを使用して新しいvmにインストールしました。
私はそれを機能させようとしますが、単純なコマンドでは何もしません。
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
何が悪いのか分かりますか?