HowTo - cron

From The TinkerNet Wiki
Revision as of 17:52, 9 August 2021 by Tinker (talk | contribs) (Created page with "== The crontab file == Editing your personal crontab file: * <code>crontab -e</code> Editing the root crontab file: * <code>sudo crontab -e</code> For details about how to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The crontab file

Editing your personal crontab file:

  • crontab -e

Editing the root crontab file:

  • sudo crontab -e

For details about how to create crontab entries, see:

  • man 5 crontab

starting/stopping/restarting

  • sudo service cron start
  • sudo service cron stop
  • sudo service cron restart

logs

cron logs are rolled into syslog

  • grep CRON /var/log/syslog