Blog · WebJi® India

What is a Cron Job? Scheduled Tasks Explained

Quick answer: A cron job is a scheduled task on a Linux server that runs a command automatically at a fixed time — nightly backups, sitemap regeneration, email digests. You set the schedule in five time fields (minute, hour, day, month, weekday); the crond daemon fires it without anyone being logged in.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Indian freelancer's desk with a laptop showing a website, potted plant and coffee in warm window light — what is a cron job

Cron Jobs Explained (Alarm Clock for Servers)

Cron is an alarm clock for your server: a daemon (crond) wakes every minute, reads the schedule (the crontab), and fires any command whose time matches — nobody logged in, nothing clicked.

Why websites need it:

  • Nightly database backups and offsite copies
  • Sitemap regeneration for large sites
  • Log rotation and cleanup of temp directories
  • Email digests, subscription renewals, report generation

In cPanel, Cron Jobs lives under Advanced, with Common Settings presets filling the five schedule fields for you. The crontab syntax table below is the vocabulary; WordPress's wp-cron quirk is the special case worth knowing.

Reading the Crontab Syntax

A crontab line is five time fields, then the command:

Indian freelancer's desk with a laptop showing a website, potted plant and coffee in warm window light — what is a cron job
FieldRangeMeaning
Minute0–59Which minute
Hour0–23Which hour
Day of month1–31Which date
Month1–12Which month
Day of week0–7 (0 and 7 = Sunday)Which weekday

Examples that cover 90 percent of needs:

  • 0 2 * * * — every night at 2:00 AM
  • */15 * * * * — every 15 minutes
  • 0 0 1 * * — first of every month
  • @daily /path/script.sh — the shorthand for midnight daily

Two gotchas: servers default to UTC, so '18:00' may be 11:30 PM IST — check timedatectl; and long-running jobs can overlap themselves, so add locking (flock) for anything slow.

Backups are the classic first cron job — the backup solutions page pairs the schedule with storage.

Creating a Cron Job in cPanel and Linux

A cron job should call the exact script the app documents, on the interval it documents, and write output to a log you can read. A job that emails you every minute means the path or the PHP binary is wrong. Disable overlapping runs for anything that imports or sends mail.

Common Website Tasks on Cron

A cron job should call the exact script the app documents, on the interval it documents, and write output to a log you can read. A job that emails you every minute means the path or the PHP binary is wrong. Disable overlapping runs for anything that imports or sends mail.

WordPress and wp-cron (The Special Case)

Two practical notes on wp-cron in WordPress: it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.

Logs and Proving a Job Ran

Logs and Proving a Job Ran. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Timezones, Overlaps and Missed Runs

Two practical notes on output logging: it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.

Frequently Asked Questions

What is a cron job in simple terms?

Backups are the classic first cron job — the backup solutions page pairs the schedule with storage.

How do I create a cron job in hosting?

Backups are the classic first cron job — the backup solutions page pairs the schedule with storage. The question here is: How do I create a cron job in hosting.

What does the crontab syntax mean?

In cPanel, Cron Jobs lives under Advanced, with Common Settings presets filling the five schedule fields for you. The crontab syntax table below is the vocabulary; WordPress's wp-cron quirk is the special case worth knowing.

What are typical uses of cron jobs on websites?

In cPanel, Cron Jobs lives under Advanced, with Common Settings presets filling the five schedule fields for you. The crontab syntax table below is the vocabulary; WordPress's wp-cron quirk is the special case worth knowing. The question here is: What are typical uses of cron jobs on websites.

What is wp-cron and is it different?

What Is A Cron Job pricing is quoted per requirement — the table above shows indicative INR bands, and our Jaipur desk returns a fixed quote the same business day. No hidden renewal jumps: the renewal price is confirmed before payment.

How do I check whether my cron job ran?

Backups are the classic first cron job — the backup solutions page pairs the schedule with storage. The question here is: How do I check whether my cron job ran.

Is WebJi® an Indian company?

Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.

Do you provide GST invoices?

Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →