On 7/13/05, Lisa C Boyd <[EMAIL PROTECTED]> 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. -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
