0

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

1 Answers1

0

Strange problem, but i fix it just restart my server. After reboot cron start working.