You are not logged in.
Pages: 1
Hi everyone,
So I'm trying to use incron to run a script, so that whenever a file is added to my repo, it will be updated. However; incron is not behaving as I think it should be. for example, if I have this in /etc/incron.d/repo.incron
/srv/repo/x86_64/ IN_CLOSE_WRITE update-repo "$@" "$#"
in the journal I can see the following:
incrond[10557]: (system::repo.incron) CMD (update-repo "/srv/repo/x86_64/" "unigine-heaven-4.0-1-x86_64.pkg.tar.xz"
However the script is never run. I've got right at the top of the script 'echo test > /tmp/test', and yet /tmp/test is never touched or created.
I've tried putting the command in 'incrontab -e' as root as well, which results in exactly the same behaviour.
Hopefully I've missed something really basic, but the fact that it is printing to the journal that it is going to do something; and then not doing it doesn't seem quite right to me.
Ideas?
Last edited by justin-8 (2013-07-10 08:06:55)
Offline
As expected: something basic. incron ignores $PATH and requires the full path to the executable.
Offline
Pages: 1