[rt-users] bad cron job?

Greg White gregw-rt-users at greg.cex.ca
Tue Sep 18 00:02:58 EDT 2001


On Mon, Sep 17, 2001 at 10:40:46PM -0400, Jaime wrote:
> 	I think that I followed the manual's directions when doing
> this.  I entered a command into root's crontab.  Now I get an email like
> the following one every hour:
> 
> Subject: Cron <root at zeus> find /usr/local/rt-2-0-6/WebRT/sessiondata -type
>     f -amin +600  -exec rm '{}' ;
> 
> find: -exec: no terminating ";"

The ';' needs to be escaped from the shell:

find /usr/local/rt-2-0-6/WebRT/sessiondata -type f -amin +600 -exec rm \
{} \;

(first escape character mine, added for cut-n-paste accuracy -- one line
will work. Your implementation of 'find' may require the single quotes
around '{}' -- neither FreeBSD nor Linux find need it.)

-- 
Greg White
"I have no special gift, I am only passionately curious." 
	- Albert Einstein




More information about the rt-users mailing list