View Single Post
Old 3rd June 2008
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Default

I just don't get it... I'm positive CRON is not running the command now.


I have done the following:

mkdir /path/LOGS

crontab -e

Code:
5     *     *     *     *     /usr/bin/find /path/ftp/ -print -type f -mtime +7 -exec rm -f {} \; > /path/LOGS/deleted.log
The command (minus CRON stuff) works fine via command line.

I do not see anything show up in the log (file does not even get created) and my files older than 7 days are still there.

Does anyone here have more experience with CRON who might know why it is not running?

Thanks a lot.
Reply With Quote