Установлен FreeBSD
Добавляю в crontab -e
Код: Выделить всё
0 1 * * * root /usr/bin/find /var/mail/SApermreject -type f -mtime +30 -exec rm {} \;
задача выполняется, но в папке файлы все остаются, кусок лог cron
Код: Выделить всё
May 20 01:00:00 mail /usr/sbin/cron[94860]: (root) CMD (root^I/usr/bin/find /var/mail/SApermreject/new -type f -mtime +30 -exec rm {$
Код: Выделить всё
May 20 17:05:00 mail /usr/sbin/cron[10989]: (root) CMD (root^I/usr/bin/find /var/mail/SApermreject -type f -mtime +30 -exec rm {} \;)
May 20 17:10:00 mail /usr/sbin/cron[11061]: (root) CMD (root^I/usr/bin/find /var/mail/SApermreject -type f -mtime +30 -exec rm {} \;)
May 20 17:15:00 mail /usr/sbin/cron[11369]: (root) CMD (root^I/usr/bin/find /var/mail/SApermreject -type f -mtime +30 -exec rm {} \;)
Код: Выделить всё
May 20 17:25:00 mail /usr/sbin/cron[11986]: (root) CMD (root^I/usr/bin/find /var/mail/SApermreject -type f -mtime +30 -delete)
Код: Выделить всё
May 20 17:30:00 mail /usr/sbin/cron[12406]: (root) CMD (root^Ifind /var/mail/SApermreject -type f -mtime +30 -delete)
если с консоли под пользователем root выполнить команду
Код: Выделить всё
find /var/mail/SApermreject/ -type f -mtime +30 –delete
Подскажите что я делаю не так?