[horde] grandchild failed in cron

Andreas Mauser andreas at mauser.info
Mon Mar 5 12:32:55 UTC 2012


Hi,

----- Nachricht von Reindl Harald <h.reindl at thelounge.net> ---------
   Datum: Mon, 05 Mar 2012 13:08:49 +0100
     Von: Reindl Harald <h.reindl at thelounge.net>
Betreff: Re: [horde] grandchild failed in cron
      An: Andreas Mauser <andreas at mauser.info>
      Cc: horde at lists.horde.org


> Am 05.03.2012 12:56, schrieb Andreas Mauser:
>> In crontab I have:
>>
>> */5 * * * * root PHP_PEAR_SYSCONF_DIR=/var/www/mauser.info/mailoffice
>> php -d include_path=/var/www/mauser.info/mailoffice/pear/php
>> /var/www/mauser.info/mailoffice/pear/horde-alarms
>>
>> and I get a:
>>
>>  /USR/SBIN/CRON[4915]: (CRON) error (grandchild #4916 failed with exit
>> status 127)
>> and:
>> /bin/sh: root: not found
>>
>> Removing 'root' at the line beginning I get:
>> PHP Fatal error:  Call to a member function setObs() on a non-object in
>>
>> Anything to fix that?
>
> why do you not set environment-variables at the top
> of crontab or use a shell-script as wrapper?

Because I got this cron entry automatically and hoped it would be fine  
as the horde guys implemented that.

Which environment variables should I set in crontab?
Or how should a shell script as a wrapper look like in that case, and  
really do I need such?

Andreas


More information about the horde mailing list