IMHO, calling crontab syntax a programming language makes a mockery of the term. By that logic, almost any configuration file would be considered a programming language (e.g. /etc/passwd
is effectively switch
statements saying what shell to run based on the login username). I've frequently referred questions about things like iptables
rules to unix.stackexchange.com, but they have more right to be called programming than crontab
lines.
I don't think the sheer number of questions is an indicator that they're appropriate.
- Many of the thousands of [cron] questions are old (particularly the ones with many upvotes), and may predate the creation of the other Stack Exchange sites.
- Some of the questions with the [cron] tag are not even about
cron
. They added the tag because they happened to be using cron
to run the program that the question is really about.
Legitimate SO questions about cron
should relate to how to write programs that are run using it, not the basic process of using cron
. A good example of this is How to simulate the environment cron executes a script with?. Other appropriate questions are about writing programs that interact with cron
, e.g. How can I programmatically create a new cron job?
Admittedly the boundaries between these 3 sites has always been a bit fuzzy. But I think if your question is just about how to fill in the first 5 fields of a crontab
entry, or "why isn't my cron job running?", it's not really a programming question and doesn't belong on SO.
Just this side of the SO boundary are questions about doing tricky scheduling that isn't directly supported by the crontab syntax, e.g. "first Monday of every month". This usually involves adding code to the script that's run from the crontab, so it slips into the programming world and is on-topic.