incron icon indicating copy to clipboard operation
incron copied to clipboard

Incrontab confused by multiple spaces as separators

Open symcbean opened this issue 3 years ago • 1 comments

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 ;)

symcbean avatar Feb 02 '21 12:02 symcbean

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

eworm-de avatar Apr 29 '22 09:04 eworm-de