Koozali.org: home of the SME Server

Cron <root@server> /usr/lib/sa/sa2 -A

Jan

Cron <root@server> /usr/lib/sa/sa2 -A
« on: September 20, 2003, 02:21:15 PM »
A few days ago I started getting these daily messages from Cron Daemon.:

sh: -c: line 1: syntax error near unexpected token ('
sh: -c: line 1: /dev/rd/b/find /var/log/sa ( -name -o -name ) -mtime +7 -exec rm -f {} ;'

Expecting the error to be related to Spamassassin I removed all the SA rpm's, but it changed nothing. I really don't know where to look. If the problem is related to SA, I maybe have to delete a cronjob somewhere, too?

TIA
Jan

Rick Jones

Re: Cron <root@server> /usr/lib/sa/sa2 -A
« Reply #1 on: September 20, 2003, 05:08:21 PM »
I don't know what that is, but it's not Spamassassin. I have SA installed, and I have no /usr/lib/sa or /var/log/sa directory.

I can see what's wrong with the command, the ( and ) should be escaped, as \( and \). As it is it's invalid shell syntax. It looks very odd though, because I don't know what /dev/rd/b is, and you wouldn't expect to invoke "find" under that path - it needs no qualifying as it's in one of the main bin directories.

Have a look at what files are in /etc/cron.daily, one of them must be kicking this off, should give you a clue.

Rick