when i used the following line in the incrontab:
/etc IN_DELETE,IN_CLOSE_WRITE /script/incronfilter.sh $@ $# $%
The $# will be set to the Correct filename when i create a file.
Apr 18 09:41:56 test incrond[3351]: PATH (/etc) FILE (abc123) EVENT (IN_CLOSE_WRITE)
Apr 18 09:41:56 test incrond[3351]: (root) CMD (/script/incronfilter.sh /etc abc123 IN_CLOSE_WRITE)
But when i edit the file again there will be just a Number instead of the Filename:
Apr 18 09:48:06 test incrond[3351]: PATH (/etc) FILE (4913) EVENT (IN_CLOSE_WRITE)
Apr 18 09:48:06 test incrond[3351]: (root) CMD (/script/incronfilter.sh /etc 4913 IN_CLOSE_WRITE)
Sometimes it will show the filename and sometimes the Number 4913.
I am using:
RHEL7 7.6 and incron-0.5.12-11.el7.x86_64 from the epel-repository.
Can anyone explain me this behavior or is anyone else faceing this?
Hello,
when i used the following line in the incrontab: /etc IN_DELETE,IN_CLOSE_WRITE /script/incronfilter.sh $@ $# $%
The $# will be set to the Correct filename when i create a file. Apr 18 09:41:56 test incrond[3351]: PATH (/etc) FILE (abc123) EVENT (IN_CLOSE_WRITE) Apr 18 09:41:56 test incrond[3351]: (root) CMD (/script/incronfilter.sh /etc abc123 IN_CLOSE_WRITE)
But when i edit the file again there will be just a Number instead of the Filename: Apr 18 09:48:06 test incrond[3351]: PATH (/etc) FILE (4913) EVENT (IN_CLOSE_WRITE) Apr 18 09:48:06 test incrond[3351]: (root) CMD (/script/incronfilter.sh /etc 4913 IN_CLOSE_WRITE)
Sometimes it will show the filename and sometimes the Number 4913.
I am using:
RHEL7 7.6 and incron-0.5.12-11.el7.x86_64 from the epel-repository.
Can anyone explain me this behavior or is anyone else faceing this?
Regards, Finn