Answer the question
In order to leave comments, you need to log in
Cron not running command, what's wrong?
ubuntu 18.04
There is a cron job in /etc/crontab and it won't run:
20 * * * * root /usr/bin/find /home/user/temps/ -type f -mmin +20 -delete
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
> /tmp/output
- the file is empty
Answer the question
In order to leave comments, you need to log in
Weird!
Are you sure that there are "old" files left?
Change temporarily to something like
* * * * * root /usr/bin/find /home/user/temps >> /tmp/cron-debug.out 2>&1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question