The first noncomment line in a legacy crontab file begins with five asterisks:
* * * * * ([a_command]) >/dev/null 2>&1
The authors are gone, so I do not know their intent. What does all-wildcards mean to (Solaris 8) cron? The betting here is either run once, run continuously, or run never, which is unfortunately broad.
If you are wondering about the comment line preceding this, it is "Do not delete."
Note: This cron file is working. This question is not a duplicate of a question about broken cron files or cron files which require troubleshooting.
Every minute of every day of every week of every month, that command runs.
man 5 crontab
has the documentation of this. If you just typeman crontab
, you get the documentation for the crontab command. What you want is section 5 of the manual pages which covers system configuration files including the/etc/crontab
file. For future reference, the sections are described inman man
:*
= always. It is a wildcard for every part of the cron schedule expression.So
* * * * *
meansevery minute
ofevery hour
ofevery day
ofevery month
andevery day
of theweek
.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
.Say you want to run something every 1st of every month.