[TriLUG] Script error?

Rick DeNatale rick.denatale at gmail.com
Wed Jul 13 22:10:11 EDT 2005


On 7/13/05, Lisa C Boyd <lcboyd at nc.rr.com> wrote:
> I've got a cron job setup to delete SquirrelMail attachments that are 2
> days old (in the spool directory). I'm getting an email from Cron saying
> that "rm: too few arguments" - here's the line from crontab:
> 
> rm `find /var/spool/squirrelmail/attach -atime +2 | grep -v "\." | grep
> -v _`
> 
> It is all on one line, but there is nothing in the directory to be
> deleted. Is there something I need to add or change to get rid of this
> email alert?

The easy way would be to put >/dev/null at the end (AFTER the second
backtick) which would throw it away.  Of course if something else went
wrong you wouldn't know.



More information about the TriLUG mailing list