What is a cron job?
A cron job is a task that a server runs automatically at set times. The name comes from the cron scheduler on Linux and Unix. Typical cron jobs are nightly backups, sending reports, syncing stock data or cleaning up old files.

Cron job: definition and origin
A cron job is a command or script that a server starts on a fixed schedule by itself, without anyone having to remember it or press a button. The service responsible is cron, which has been part of Linux and Unix systems for decades. It reads the schedules from the so-called crontab and starts the tasks on time.
Cron jobs are the workhorse of background processing: they handle recurring work reliably and cheaply because they need no additional software. The downside: cron only knows the time. Whether the task succeeded, or whether the server was even running at the start time, cron does not check on its own. Hosting plans and cloud providers offer the same function too, usually under names like “scheduled tasks.”
How the schedule works
A schedule consists of five fields: minute, hour, day of the month, month and day of the week, followed by the command to run. An asterisk means “every.” The entry “30 2 * * *” starts the task daily at 2:30 a.m., “0 8 * * 1” every Monday at 8:00 a.m.
The task runs in the background. Nobody sees its output or error messages unless they are explicitly written to a log file or reported by email—which is where many setups fail in practice. It makes sense to build every task so that it reports its result and does no harm if it runs again.
- Nightly backup of the database
- Syncing stock levels and prices with the inventory system
- Sending weekly reports or reminder emails
- Deleting expired sessions, temporary files and old logs
- Generating sitemaps or product feeds
Real-world example: a nightly run in online retail
A retailer syncs its stock levels with the inventory system every night at 3 a.m. so that the store does not offer sold-out items in the morning. A cron job reads the export file and updates the stock levels in the store. That way, sales sees the right figures in the morning without anyone having to upload files by hand.
One night the job aborts because of a faulty file, and nobody notices because no message arrives. Only customer complaints reveal the problem. Since then, the job writes a log and reports errors by email; in addition, a monitoring service checks that the run took place at all.
Common mistakes and what to watch for
Common stumbling blocks are the clock change, when a job may be skipped or run twice depending on the system; overlaps, when the next run starts before the last has finished; settings that exist in the terminal but are missing for the cron job; and forgotten jobs after a server move.
Nano Concepts documents scheduled tasks, sets up monitoring and notifications and, for complex processes, chooses sturdier tools such as queues or workflow automation instead of stringing together ever more cron jobs. It is also important that the jobs do not live only on one service provider’s server but are covered in the documentation and in the backup.
Frequently asked questions about Cron job
On Linux servers you open the schedule table with “crontab -e” and add a line with five time fields and the command. With many hosts, a form in the customer area is enough. Test the task by hand first and send its output to a log file.
Usually yes: many hosting plans offer scheduled tasks in the customer menu, sometimes with limits on frequency and runtime. Check your provider’s terms. On your own server or VPS you have full control.
WP-Cron is WordPress’s task scheduler. It is not a real cron; it is only triggered when a page is requested, so with few visitors tasks run late. For time-critical tasks it is often triggered by a real cron job instead.
Reliably only with monitoring: the job writes a log, reports errors and sends a heartbeat to a monitoring service after every run. If it fails to arrive, an alert goes out. Without this check, you often notice outages only through their consequences.
Matching services

Process Automation
Recurring tasks run automatically – less manual work, fewer errors, more time for your business.
Learn more
Maintenance & Support
Updates, monitoring, backups and further development – so websites, apps and software run reliably.
Learn more
DevOps & CI/CD
Automated tests, builds and deployments – for faster releases and fewer outages in production.
Learn more
Databases & Cloud
Data architecture, migration and cloud hosting – high-performing, secure and, on request, in German data centers.
Learn moreRelated terms
Relevant for these industries
Related magazine articles

DevOps and GitOps: CI/CD Pipeline, Quality and Reproducible Releases
Releases without the nerves: how a CI/CD pipeline, infrastructure as code and a rehearsed rollback plan make software delivery reproducible and measurable.
Read more
Cloud Scaling for Platforms: Find Bottlenecks, Control Costs
More servers rarely solve the real problem. How to scale web platforms deliberately: measure bottlenecks, fix the database and cache first, and keep costs and resilience under control from the start.
Read more
Software Maintenance: What a Maintenance Contract Should Include
Software is never finished. Which services a maintenance contract should include, how to separate maintenance, support and further development, and what scope your software really needs.
Read more