You can append
2>&1 | logger -t my-cronjob
to any command, and it will write logs to system journal which you can view withjournalctl
You can append
2>&1 | logger -t my-cronjob
to any command, and it will write logs to system journal which you can view withjournalctl