You are not logged in.
Pages: 1
Topic closed
after update 9.1.1 to 9.1.2 "maingate" Stopped working automatically/
I mean that tasks from the mailbox are not automatically added
Only by manually pressing the receive button
OS Centos 6.8
crontab -e
*/5 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
what`s wrong?
P.S. - not work
*/1 * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
or
*/5 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
/usr/bin/php - corect path
/var/www/html/glpi/front/cron.php - correct path
php-cli - installed. latest.
GUYS!..
i`am fix it!
F**King time
mail server time 12:20:05
glpi server time 12:24:11
synchronization time fix this problem
Last edited by nikit0ss (2017-03-16 11:30:33)
Offline
This works for my system:
#GLPI Automatische Jobs mit CLI Mode starten
*/1 * * * * /usr/bin/php5 /var/www/glpi/front/cron.php > /dev/null 2>&1
If you type this on console / putty sesssion what did you get ?
/usr/bin/php /var/www/html/glpi/front/cron.php
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
yes
this work
/usr/bin/php /var/www/html/glpi/front/cron.php
this not work
*/1 * * * * /usr/bin/php /var/www/glpi/front/cron.php > /dev/null 2>&1
_______________
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
/usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder
Last edited by nikit0ss (2017-03-14 16:01:44)
Offline
Is this your error message ?
_______________
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
/usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder
1.) Please only edit crontab witch
crontab -e
nothing else
2.) If you have really semicolon in your crontab this is wrong.
3.) Please give us the output from
crontab -l
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
[root@CNFPDCIT01 ~]# crontab -l
*/1 * * * * /usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null
[root@CNFPDCIT01 ~]#
Offline
Is this your error message ?
Yes, this is an error message, if I completely register the entire line in the shell
(
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
)
or
(
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder
)
If I write like this:
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php
All work - The ticket comes
CRON LOG:
Mar 15 07:16:01 CNFPDCIT01 CROND[32029]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:17:01 CNFPDCIT01 CROND[32035]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:18:01 CNFPDCIT01 CROND[32042]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:19:01 CNFPDCIT01 CROND[32072]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Last edited by nikit0ss (2017-03-15 06:15:57)
Offline
Up UP UP!
Offline
GUYS!..
i`am fix it!
F**King time
mail server time 12:20:05
glpi server time 12:24:11
synchronization time fix this problem
Offline
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
Pages: 1
Topic closed