[kronolith] Alarm

Craig White craigwhite at azapple.com
Sat Feb 4 18:29:27 PST 2006


On Sat, 2006-02-04 at 21:11 -0500, Kevin M. Myer wrote: 
> Quoting Craig White <craigwhite at azapple.com>:
> 
> > set it to a cron with a repeating interval.
> >
> > # cat /var/spool/cron/apache
> > 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * 
> > \
> > /usr/bin/php -f /var/www/html/horde/kronolith/scripts/reminders.php \
> >> /dev/null 2>&1
> 
> Or if using a modern cron, save yourself some typing and use:
> 
> */2 * * * * ....
> (or whatever interval you choose to use - I run it every minute)
----
don't know if the cron I use is modern enough...I have the user apache
execute the reminder script and I can't get a shell for the user apache
to manually edit the cron file anyway and I don't care enough to
research it. I typically click my way through cron editing via
webmin...and that is the way that it writes the cron file. I thought
about changing it for the post but I thought that it might be more
instructive that way.
---- 
> 
> If you happened to change anything in your Apache config that affects 
> PHP and differs from your php.ini (like altering PHP's include_path, or 
> log file location), you'll need to make the appropriate changes within 
> reminders.php.
----
now that's interesting because I have never fooled around with this file
at all and on a RHEL 4 (or CentOS clone), I have always had to
add /usr/share/pear to the include path and the top of the file I have
noticed has #!/usr/local/bin/php which I of course ignore and haven't
had a problem...ignorance is bliss I guess.

Craig



More information about the kronolith mailing list