[rt-users] rm sessiondata from crontab...
Adrian Galindo
agalindo at liceaga.facmed.unam.mx
Fri Jan 18 12:49:45 EST 2002
Kristopher Lalletti escribió:
>
> I'm trying to get find with -exec to work .. and I'm not getting any
> luck
>
> Here's the cmdline from the RT docs, for the -exec , syntax looks great
> from the man pages, but I keep getting "/usr/bin/find: missing argument
> to `-exec'".
>
> /usr/bin/find /opt/rt2/WebRT/sessiondata -type f -amin +600 -exec
> /bin/rm '{}' ;
>
> Any ideas? I wouldn't be surprised that RedHat 7.2 would use some sort
> of their own /usr/bin/find, but I want to make sure if I'm not missing
> something..
You miss the backslash at the end.
The correct is:
/usr/bin/find /opt/rt2/WebRT/sessiondata -type f -amin +600 -exec
/bin/rm '{}' \;
man find for more information.
Greetings
Adrian Galindo
More information about the rt-users
mailing list