I'm a little bit confused about cron job parameters. I'm using bitnami magento installation on amazon azure. I found that if I want to run cron tasks I have to configure cron job
and there is this line
* * * * * su daemon -c "/bin/sh /opt/bitnami/apps/magento/htdocs/cron.sh"
and I do not understand how frequently I will run ? As I understant setting my own cron task I will also have to use asterisk to set frequency. Can anyone explain how to understand this asterisk convention ?
Thanks in advance.
Best Answer
*
= always. It is a wildcard for every part of the cron schedule expression.So
* * * * *
means every minute of every hour of every day of every month and every day of the week.The nice drawing above is provided by wikipedia
An other example:
0 * * * *
-this means the cron will run always when the minutes are0
(so hourly)0 1 * * *
- this means the cron will run always at 1 o'clock.* 1 * * *
- this means the cron will run each minute when the hour is 1. So1:00
,1:01
, ...1:59
.