reminder.php messages every 5 minutes cron

View: New views
3 Messages — Rating Filter:   Alert me  

reminder.php messages every 5 minutes cron

by John Alexander Sarmiento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Cordial Saludo.
Hi, I have in cron system a taks reminder.php, this work fine, but how  
preventing that send messages to administrator:
___________________________________________________
Fecha:  Mon, 19 Oct 2009 10:55:02 -0500 [10:55:02 COT]
De:  Cron Daemon <root@...>
Para:  root@...
Asunto:  Cron <root@mercurio> /usr/bin/php  
/var/www/html/horde/kronolith/scripts/reminders.php

X-Powered-By: PHP/4.3.9
Content-Type: text/html; charset=ISO-8859-1
____________________________________________________

Gracias
Atentamente,
___________________________________
John Alexander Sarmiento R.
Departamento de Sistemas Profamilia
E-Mail    : jasarmiento@...
Teléfono : +57-(1)-3390900 ext 199-153-150
Fax        : +57-(1)-3390900 ext 190
Web       : http://www.profamilia.org.co
Dirección : Calle 34 # 14-52
Bogotá - Colombia







----------------------------------------------------------------
Antes de imprimir este mensaje reflexione si realmente es necesario.



Este correo es personal, si no es para usted por favor borre su contenido.
Los mensajes de email pueden ser alterados, en consecuencia Profamilia no
asume responsabilidad alguna. Las opiniones expresadas son del autor y no
necesariamente representan las de Profamilia. Un antivirus ha revisado este
mensaje.
--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@...

Re: reminder.php messages every 5 minutes cron

by Gary Smith-20 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> Cordial Saludo.
> Hi, I have in cron system a taks reminder.php, this work fine, but how
> preventing that send messages to administrator:


What does your crontab look like?  Can you show us what you are using?
--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@...

Parent Message unknown Re: reminder.php messages every 5 minutes cron

by Gary Smith-20 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please email list, not me directly.

> Cordial Saludo.
> Thanks for your answers and excuse me for my bad enghish.

No worries.

> My operating system are REDHAT ES4
> My crond is crontabs-1.10-7
>
> My cron is:
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/php /var/www/html/horde/kronolith/scripts/reminders.php

Here is the problem.  When run is run, output to STDOUT and STDERR is sent to email.  So, stop sending STDOUT.  Redirect STDOUT to to /dev/null (still keeping STDERR as you want that)

Ex. /var/www/html/horde/kronolith/scripts/reminders.php > /dev/null

Also,

Don't do 0,5,10,etc for time interval do this (0/5 meaning every 5 min):

0/5 * * * * /usr/bin/php /var/www/html/horde/kronolith/scripts/reminders.php > /dev/null

Hope that helps.
--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@...