Cron Jobs Run At Same Time -
in cron job file have 2 cronjobs defined:
#yo1 mailto="example@domain.com" *1****wget -o - -q "http://example.com/cron/test1.php">/dev/null 2>&1 #yo1 mailto="example@domain.com" *15****wget -o - -q "http://example.com/cron/test2.php">/dev/null 2>&1
the php files simple sending mails different subjects.
the issue both cronjobs running on same time every minute, can see want them run on different times. first - every minute, second - every 15 minutes.
can me this. can't figure out whats wrong.
your syntax incorrect. please use following code
#every minute * * * * * wget -o - -q "http://example.com/cron/test1.php">/dev/null 2>&1 #every 15 minutes */15 * * * * wget -o - -q "http://example.com/cron/test2.php">/dev/null 2>&1
you can use online crontab generators http://www.crontab-generator.org/
Comments
Post a Comment