I have command in crontab:
20 * * * * root /usr/bin/find /home/user/temps/ -type f -mmin +20 -delete
If I run this command in terminal everything works fine, but in /etc/crontab doesn't work. What am I doing wrong? Ubuntu 18.04 in journalctl -u cron.service
CRON[17590]: pam_unix(cron:session): session opened for user root by (uid=0)
CRON[17591]: (root) CMD (/usr/bin/find /home/user/temps/ -type f -mmin +15 -delete )
CRON[17590]: pam_unix(cron:session): session closed for user root
if i add > /tmp/output to command - file empty
crontab -e
? – Soren A Jan 14 '21 at 10:54