Re: command not executed?

From: Lukas Jelinek <lukas_at_aiken.cz>
Date: Thu, 09 Dec 2010 21:07:23 +0100

This should work. There is no reason why it doesn't. I tried to
reproduce it now and it works well for me. What version of incron do you
use? What Linux distribution?

> 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
> <mailto: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?
>
>

-- 
*Ing. Lukás( Jelínek*
/jednatel/
*AIKEN s.r.o.*
provozovna: Lorecká 465, 284 01 Kutná Hora
sídlo: Jakubská 3, 284 01 Kutná Hora
tel. 312 312 413
mobil 606 362 315
fax 910 807 336
e-mail: aiken_at_aiken.cz <mailto:aiken_at_aiken.cz>
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