[TriLUG] Script error?

Lisa C Boyd lcboyd at nc.rr.com
Wed Jul 13 21:53:17 EDT 2005


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?

Thanks :)
Lisa B.



More information about the TriLUG mailing list