You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-07-18 19:11:10

dtwomley
Member
Registered: 2008-07-18
Posts: 4

mailgate cron.php

Selecting the "Get email tickets now" button under Main Gateways is working fine-email messages are picked up and process as expected.

I am unable to automate this process. I've added the following line to cron, and have also tried running the command from a shell prompt. I have confirmed that it is executing, but emails are not processed, and there is not any output.

*/5 * * * * /usr/bin/php5 /usr/local/Zend/apache2/htdocs/glpi/front/cron.php &>/dev/null

I must be missing something.

Thanks for your help.

Offline

#2 2008-07-19 02:12:12

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: mailgate cron.php

Could you active the debug mode in configuration of GLPI and also enable trace file.

And have a look in /files/_log


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2008-07-21 16:34:54

dtwomley
Member
Registered: 2008-07-18
Posts: 4

Re: mailgate cron.php

Thank you for the prompt reply. The mailgate system is picking up emails correctly, I just was not being patent enough. After monitoring the _log/cron.log file, I observed the mailgate process executing every 12 minutes. How can I change the schedule to execute every 5 minutes?

Thanks!

Offline

#4 2008-07-21 16:38:21

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: mailgate cron.php

in 'glpi/inc/cron.class.php' at line 133

$this->taches["mailgate"]=600;

Change 600 (it's in seconds)

AND

in cron, change every */5  in every 1minute */1 to be sure mails are get every 5 minutes

Last edited by ddurieux (2008-07-21 16:39:32)

Offline

Board footer

Powered by FluxBB