Cómo configurar un trabajo cron para que se ejecute cada 3 horas [duplicar]
Esta pregunta ya tiene una respuesta aquí:
- Ejecutando cron job en linux cada 6 horas 5 respuestas
¿Es esta la forma correcta de configurar un trabajo cron para que se ejecute cada 3 horas? Después de configurarlo de esta manera, cron está ejecutando el comando cada minuto.
48
Author: Elise van Looij, 2014-03-19
3 answers
Cambiar Minuto para ser 0
. Eso es todo:)
Nota: puedes revisar tus "crones" en http://cronchecker.net /
115
Author: jimm-cl,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-12-20 00:47:27
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-12-20 00:47:27
Cambie el parámetro Minuto a 0.
Puede establecer el cron para cada tres horas como:
0 */3 * * * su comando aquí ..
24
Author: Aman Aggarwal,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-11-11 11:10:40
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-11-11 11:10:40
La configuración de unix debería ser como la siguiente:
0 */3 * * * sh cron/update_old_citations.sh
Buena referencia para establecer varios ajustes en cron en: http://www.thegeekstuff.com/2011/07/cron-every-5-minutes /
9
Author: shacharsol,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-25 09:08:07
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-25 09:08:07