Re: command not executed?

From: Rob <rob.bast_at_gmail.com>
Date: Thu, 9 Dec 2010 18:44:17 +0100

That's because php5 is the binary. After that comes path to the file it
should use as an argument..

On 9 December 2010 18:43, Evert Mouw <post_at_evert.net> wrote:

> 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