Re: command not executed?

From: Evert Mouw <post_at_evert.net>
Date: Thu, 09 Dec 2010 18:43:21 +0100

There is a space, could be the cause of the problem:

"php5 /root"

Regards, Evert

Op 9-12-2010 17:30, Rob schreef:
> I have the following in my root incrontab:
>
> /home/rob IN_ALL_EVENTS /usr/bin/php5 /root/test.php $@/$# $& $%
>
> I can see it triggers just fine in syslog:
>
> Dec 9 17:13:28 fulfillment incrond[25764]: (root) CMD (/usr/bin/php5
> /root/test.php /home/rob/test 32 IN_OPEN)
> Dec 9 17:13:28 fulfillment incrond[25764]: (root) CMD (/usr/bin/php5
> /root/test.php /home/rob/test 1 IN_ACCESS)
> Dec 9 17:13:28 fulfillment incrond[25764]: (root) CMD (/usr/bin/php5
> /root/test.php /home/rob/test 16 IN_CLOSE_NOWRITE)
>
> But test.php doesn't actually seem to be called or executed (it should
> write the arguments passed to log file).
> When calling test.php manually it works fine (even when literally
> using the lines between () from syslog above.
>
> Does incrond not call the cmd?
Received on Tue Jun 05 2012 - 22:14:21 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST