Error in crontab

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=1

But 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=1

should be fine

only 5 stars are allowed

1

Cron 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 *.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like