[rt-users] bad cron job?

Harald Wagener hwagener at fcb-wilkens.com
Tue Sep 18 10:10:27 EDT 2001


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 crontab for root looks like this:
> 0 * * * * find /usr/local/rt-2-0-6/WebRT/sessiondata -type f -amin +600 -exec rm '{}' ;
> 

try to escape the semicolon by prepending a backslash. It is consumed by the shell
interpreter otherwise.

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


Regards,
	Harald

-- 
Harald Wagener      |                                Systemadministrator 
FCB/Wilkens GmbH    |                              Tel.:+49-40-2881-1252 
An der Alster 42    |                              Fax.:+49-40-2881-1263 
20099 Hamburg       |                         http://www.fcb-wilkens.com




More information about the rt-users mailing list