cron #
References #
- ArchWiki - cron
- Crontab - Quck Reference
- crontab guru - “The quick and simple editor for cron schedule expressions…”
- Cron cheatsheet
Monitoring cronjobs #
Monitoring cronjobs with Prometheus …
- Monitor cron jobs with Prometheus, Grafana and Node exporter - Example use-case that pipes cronjob status to a Bash script that then writes to a Prometheus textfile collector.
Crontab #
Print crontabs for all users:
find /var/spool/cron -type f -printf 'USER: %u \n' -exec cat {} \;
[root@rocky8 ~]# find /var/spool/cron -type f -printf 'USER: %u \n' -exec cat {} \;
USER: root
* * * * * sleep 2
USER: vagrant
* * * * * sleep 3