[kronolith] File reminders.php receive by mail ??

Jean-François Sénéchal jean-francois.senechal at marche.be
Tue Nov 22 04:12:36 PST 2005


Yes it's the right path


Edwin L. Culp a écrit :

>Quoting Jean-François Sénéchal <jean-francois.senechal at marche.be>:
>
>  
>
>>Hello,
>>
>>I add the following line in my crontab  :
>>
>>*/5 * * * * /usr/bin/php /var/www/kronolith/scripts/reminders.php
>>    
>>
>
>the path to reminders.php doesn't look right.  Should it not be 
>something like /var/www/horde/kronolith/scripts/reminders.php ?
>
>ed
>  
>
>>But the file will not execute, instead I receive this mail every 5
>>minutes :
>>?
>>
>>My config :
>>
>>Horde 3.0.6
>>IMP H3 (4.0.4)
>>Kronolith H3 (2.0.5)
>>Debian
>>
>>Thanks !
>>
>>
>>-------- Message original --------
>>Sujet: 	Cron /usr/local/php /var/www/kronolith/scripts/reminders.php
>>Date: 	Tue, 22 Nov 2005 09:50:02 +0100
>>De: 	root at intranet (Cron Daemon)
>>Pour: 	root at intranet.marche.be
>>
>>
>>
>>/**
>>* $Horde: kronolith/scripts/reminders.php,v 1.17.10.2 2005/06/12 
>>14:24:39 chuck Exp $
>>*
>>* Copyright 2003-2005 Charles J. Hagenbuch <chuck at horde.org>
>>*
>>* See the enclosed file COPYING for license information (LGPL).  If you
>>* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
>>*/
>>
>>// Find the base file path of Horde.
>>@define('HORDE_BASE', dirname(__FILE__) . '/../..');
>>
>>// Find the base file path of Kronolith.
>>@define('KRONOLITH_BASE', dirname(__FILE__) . '/..');
>>
>>// Do CLI checks and environment setup first.
>>require_once HORDE_BASE . '/lib/core.php';
>>require_once 'Horde/CLI.php';
>>
>>// Make sure no one runs this from the web.
>>if (!Horde_CLI::runningFromCLI()) {
>>   exit("Must be run from the command line\n");
>>}
>>
>>// Load the CLI environment - make sure there's no time limit, init
>>// some variables, etc.
>>Horde_CLI::init();
>>
>>// Now load the Registry and setup conf, etc.
>>$registry = &Registry::singleton(HORDE_SESSION_NONE);
>>$registry->pushApp('kronolith', false);
>>
>>// Include needed libraries.
>>require_once 'Date/Calc.php';
>>require_once 'Horde/Date.php';
>>require_once 'Horde/Scheduler.php';
>>require_once KRONOLITH_BASE . '/lib/Kronolith.php';
>>require_once KRONOLITH_BASE . '/lib/Scheduler/kronolith.php';
>>
>>// Create a share instance. This must exist in the global scope for
>>// Kronolith's API calls to function properly.
>>require_once 'Horde/Share.php';
>>$shares = &Horde_Share::singleton($registry->getApp());
>>
>>// Create a calendar backend object. This must exist in the global
>>// scope for Kronolith's API calls to function properly.
>>$kronolith = &Kronolith_Driver::factory();
>>
>>// Get an instance of the Kronolith schedulerr.
>>$reminder = &Horde_Scheduler::unserialize('Horde_Scheduler_kronolith');
>>
>>// Start the daemon going.
>>$reminder->run();
>>
>>
>>    
>>



More information about the kronolith mailing list