nostr:npub1v7t4yx9vxtv3mat0hdsduuym4fvjd5dzmdlh82ssa40phr965h2s2lck6k nostr:npub1k9arkn78gmdp5ew20r44aqwwu84wjhvshjf9kcht46heh4zajthsjjm3yh nostr:npub1z5rxmrt9l59y2256e5kzmfj44ydpnhgj04dq6qumjvwehe2pk30qz4rjcc I think the easiest one (if you are using systemd, journalctl is one of the best friends):
sudo journalctl -u cron | grep "scriptname"
It will show you when they were executed (and what user):
# Run by misskey user
Sep 17 20:30:01 slippy CRON[389091]: (misskey) CMD (/home/misskey/kiki fetch && /home/misskey/kiki publish)
# Run by root (creates daily mysql dumps)
Sep 17 01:00:01 slippy CRON[246758]: (root) CMD (/root/backup/backup.database.mysql.sh)
# Run by root (creates weekly basebackup for WAL)
Sep 17 02:00:01 slippy CRON[252575]: (root) CMD (/root/backup/backup.database.postgresql.sh)
# Run by my own user to clean up old remote files through API calls.
Sep 17 03:00:01 slippy CRON[258304]: (efertone) CMD (/home/efertone/slippy-maintenance/clean-old-remote-files.py)
It will not record the exist status, but I get an email always when stderr is not empty.
Hope it helps.