English + हिन्दी | TechWithAdi
Cron is a Linux service used to schedule tasks automatically at specific times.
Crontab is a configuration file used to manage cron jobs.
crontab -e crontab -l crontab -r
* * * * * command | | | | | | | | | +---- Day of Week | | | +------ Month | | +-------- Day | +---------- Hour +------------ Minute
0 2 * * * /home/user/backup.sh */5 * * * * /home/user/script.sh
Linux task scheduling service.
Cron configuration file.
crontab -e
crontab -l
crontab -r
Minute Hour Day Month Weekday
0 2 * * * command
*/5 * * * * command
Usually syslog or cron logs.
Permissions or path issues.
Runs missed jobs on systems not always on.
Anacron handles missed schedules.
Schedule backup scripts with cron.
Use > logfile 2>&1
systemctl status cron
systemctl restart cron
Variables available to jobs.
Check logs and output files.
Logging, testing, monitoring.
Schedule → Execute → Log → Verify.
Cron Linux की task scheduling service है।
crontab -e crontab -l crontab -r
Linux task scheduling service।
Cron configuration file।
crontab -e
crontab -l
crontab -r
Minute Hour Day Month Weekday
0 2 * * * command
*/5 * * * * command
syslog या cron logs में।
Permission या path issue।
Missed jobs run करता है।
Anacron missed schedules handle करता है।
Cron scripts से।
log file में redirect करें।
systemctl status cron
systemctl restart cron
Jobs के लिए variables।
Logs check करें।
Testing, logging, monitoring।
Schedule → Execute → Log → Verify।