I'm putting the following instructions:
00 12 * * * /usr/bin/php -q -f
* * * * * * /var/www/html/glpi/scripts/ldap_mass_sync.php action=1
* * * * * * ldapservers_id=1But I'm getting the message:
crontab: installing new crontab
"/tmp/crontab.6N2VjD/crontab":1: bad command
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n)How can I solve this ?
2 Answers
00 12 * * * /usr/bin/php -q -f
* * * * * /var/www/html/glpi/scripts/ldap_mass_sync.php action=1
* * * * * ldapservers_id=1should be fine
only 5 stars are allowed
1Cron follows following format.
<Minute> <Hour> <Day_of_the_Month> <Month_of_the_Year> <Day_of_the_Week>You are using extra * and it doesn't follow format. You need to remove extra *.