CRON for clearing the Attachments Directory
Per the install instructions, I set the following command up as a cron job to clear the attachments directory:
find /home/mydomain/var/hastymail2/attachments/ -cmin +60 -print | xargs rm
When the cron runs, I get an email that reads:
rm: cannot remove `/home/mydomain/var/hastymail2/attachments/': Is a directorySeems we are missing somesort of file argument, but I'm not very good with system commands ans syntax, so I'm not sure what to change.Jim Craig
Re: CRON for clearing the Attachments Directory
Jim,
Thanks again for the feedback. The command can be adjusted slightly to avoid this by adding a "*" to the end of the attachments dir path:
find /home/mydomain/var/hastymail2/attachments/* -cmin +60 -print | xargs rm
I will update the INSTALL file with this change shortly.
Jason
Pages: 1