You are not logged in.
Pages: 1
hello,
when i add a new ticket ,the technicien don't recieve a mail, the emails keep stayin in notifications queue so after i search i knew that i have to do cron the problem is I am using Xampp and i don't what should I put in the .bat file , i found an old post where a member of this forum put this config but it didn't work for me
Le script script_cron.bat :
start "C:\Program Files (x86)\Internet Explorer\iexplore.exe" http://ip_server/glpi/front/cron.php
ping -n 10 localhost >NUL
taskkill /F /IM iexplore.exe
- Tâche planifiée Windows :
- Trigger : Repeat task every : 1 minute for a duration of : Indefinitely
- Action : Start a program
Program/Script : E:\script_cron.bat
Arguments : cmd /C E:\xampp\php\php.exe -f E:\xampp\htdocs\lutece_v2\front\cron.php
(La tâche est exécutée avec un compte administrateur)
if someone has any idea of what should I change in this config I'll be grateful
Offline
HI,
You should not need the script_cron.bat calling internet explorer.
In Windows task scheduler, in the Action :
Program/script : php.exe ( or in your case E:\xampp\php\php.exe)
Arguments : c:\Apache24\htdocs\glpi\front\cron.php ( or in your case E:\xampp\htdocs\lutece_v2\front\cron.php)
you might also need to "run whether user is logged in or not", and also "Run with highest privileges" with a suitable user account
Offline
thanks for your respond, I did what you said but the email still in the notification queue and every time i have to click on send
Offline
check in Setup -> Automatic actions
Look for queuednotification, and check what run frequency it is set to. Also try changing "run mode" to CLI
Offline
for the frequency i chose 1minute ,run mode = CLI
Offline
the creation date = send date but it didn't send
Creation date 14-06-2022 15:28 Expected send date 14-06-2022 15:28
Offline
update
in task scheduler I have to execute the task every time to send ticket to emails even i configure the task to be executed every minute/every day
the task should always be running
Offline
Hi,
The only thing i can add now its probably down to permissions of the Windows scheduled task.
Without starting the task manually, Does the Task show the Last Run result "The operation completed successfully (0x0)"
Look in E:\xampp\htdocs\lutece_v2\files\_logs, and look for the cron.log. If the scheduled task is running correctly, you will see the actions GLPI takes in cron.log
If you can manually run the scheduled task ( and the cron.log entries show accordingly) , then that confirms that the Task Action is correct, so its down to the permissions of the user in the Task general tab.
You could also open a CMD prompt and run the "E:\xampp\php\php.exe E:\xampp\htdocs\lutece_v2\front\cron.php" manually, then repeat the task with an CMD run as admin, ( or as the user name you re setting in task manager.
After that, sorry - Im out of idea's
Last edited by supertramp4 (2022-06-15 09:43:16)
Offline
Bom dia! Acabei de resolver esse problema, abaixo segue os passos
GLPI Versão 10
1 - Criei um arquivo.bat com o conteudo abaixo (Atualiza e-mails e Notificaçoes), com o nome de atualizafila e coloquei o arquivo no caminho do XAMPP "C:\xampp\php"
php C:\xampp\htdocs\glpi\front\cron.php --force mailgate
php C:\xampp\htdocs\glpi\front\cron.php --force queuednotification
2 - Realizei a criação de uma JOB Básica do windows com o programa C:\xampp\php\atualizafila.bat e em iniciar em coloquei "C:\xampp\php".
E tudo rodou
Offline
Same issues but can't execute the command , got Parse error everytimes ( on debian )
Offline
Pages: 1