A cron job is a task scheduled to run automatically at set times or intervals on a server.
A cron job is a task scheduled to run automatically at set times or intervals on a server, without anyone having to trigger it by hand. If a website needs to send a nightly summary email, refresh a cache every fifteen minutes, generate a report at the start of each month, or clean out temporary files at three in the morning, a cron job is the mechanism that makes that happen reliably, on schedule, whether or not a person is watching. It is one of the oldest and most dependable pieces of automation in web infrastructure.
Mechanically, a cron job pairs a schedule with a command. The schedule is defined in a compact notation that specifies minute, hour, day of month, month, and day of week, allowing patterns as simple as 'every hour' or as specific as 'at 6:30 on the first Monday of the month.' A background program, the scheduler, checks the current time against all its defined schedules and, whenever one matches, runs the associated command. The command can be almost anything the server can execute: a script that queries a database, a program that rebuilds a sitemap, a routine that backs up files. The scheduler runs continuously in the background, so the jobs fire without any ongoing human involvement.
The name comes from 'cron,' the Unix scheduling program, combined with 'job,' meaning a unit of work. Cron itself is named after Chronos, the Greek word for time, an apt choice for a tool whose entire purpose is acting at the right moment. The utility dates to the 1970s and the early days of Unix, and its scheduling notation has proven so durable that it remains in daily use across servers worldwide decades later, with the same basic syntax.
For a business, cron jobs quietly power the routine operations that keep a website healthy and a marketing engine running. Automated backups protect against data loss. Scheduled reports land in inboxes without anyone remembering to build them. Regular data imports keep product feeds and pricing current. Email sequences and reminders go out on time. Search-related maintenance, like regenerating a sitemap or refreshing cached pages, can be scheduled so the site stays current for both users and search engines. Because these tasks run unattended, they free staff from repetitive manual work and remove the risk of a forgotten step at an inconvenient hour.
The nuances are mostly about reliability and visibility. A cron job that fails silently is a common trap: because nobody is watching when it runs, a broken nightly backup can go unnoticed for weeks until the day it is desperately needed. Sound practice is to have jobs report success or failure somewhere a person will see. Overlapping runs are another pitfall, where a job scheduled every five minutes takes six minutes to finish, so a second copy starts before the first ends and they interfere. Time zones can also surprise teams, since a server may run on a different clock than the business. Cron jobs relate to broader automation ideas and to recovery concepts like rollback, because a well-scheduled backup is often exactly what makes a safe restoration possible when something goes wrong.
Cron jobs automate the routine maintenance that keeps a site healthy, from backups to scheduled publishing, without manual effort. That reliability prevents costly oversights and frees your team for higher-value work.