[rt-users] rm sessiondata from crontab...

Matt Disney mdisney at ecdev.fedex.com
Fri Jan 18 12:19:09 EST 2002


Just at first glance, I would say put a backslash before the semicolon
to escape it. Otherwise, the shell will probably interpret the
semicolon, but you want 'find' to interpret the semicolon as closing
the -exec parameter.

Matt

Darrin Walton writes:
>  |+ 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 '{}' ;
>
>Just to clarify, the /bin/rm '{}' is on the same line as -exec, correct?
>
>
>
>_______________________________________________
>rt-users mailing list
>rt-users at lists.fsck.com
>http://lists.fsck.com/mailman/listinfo/rt-users
>




More information about the rt-users mailing list