I have this set up as a cron job. The command sudo -u www-data crontab -l shows:
0 3 * * * php /var/www/html/nextcloud/occ preview:pre-generate
When I run the preview command manually, it takes several seconds and ends, so I’m assuming it works, but how can I see if the cron job execution is working correctly? Which log can I check? Thanks.