ar- / incron

cron-like daemon which handles filesystem events
Other
229 stars 51 forks source link

Incrontab confused by multiple spaces as separators #76

Open symcbean opened 3 years ago

symcbean commented 3 years ago

I see this on the the Ubuntu 0.5.10build1 pkg, also reported here - http://sudoall.com/incrond-cannot-exec-process-no-such-file-or-directory/

If there is more than one space between the three attributes in the incrontab (possibly, this may be specifically between the mask and command) incrond is unable to locate the command to be run:

Feb 2 11:51:37 liv-w01-si-ssl incrond[28755]: (system::test.colin) CMD ( touch /tmp/runbyincron) Feb 2 11:51:37 liv-w01-si-ssl incrond[17863]: cannot exec process: No such file or directory

I appreciate the coding involved to handle this adds complexity; if you deem that the behaviour should not be changed, then it can the man pages please be updated to save other people the pain I have endured today ;)

eworm-de commented 2 years ago

I guess it tries to execute "touch" (note the leading space). That's not a valid executable, hence the error.