Jamie Wilkinson wrote:
> This one time, at band camp, Terry Collins wrote:
>
>>Can anyone tell me what is the correct form of
>>
>>find smtpd* -atime 7 -exec ` rm -f {} ` \;
>>on a RH5.2 system?
>
>
> You can only specify one directory to look in, so smtpd* isn't going to
> work.
err, nope
find smtpd* -atime 7 -print works just find.
It is the quoting of exec that is the problem (missing argument or
invalid is the contual squark)
Apologies for not being clearer.
>
> find . -wholename './smtpd*' -atime 7 -exec rm -f {} \;
Damm, just tested above as
find smtpd* -atime +7 -exec rm -f {} \;
and found no quotes needed.
head scratch.
Thanks for the help.
Now to write and cron the script to just auto dump filtered spam after a
week.
--
Terry Collins {:-)}}}
email: terryc at woa.com.au www: http://www.woa.com.au
Wombat Outdoor Adventures <Bicycles, Computers, Outdoors, Publishing>
"Any society that would give up a little liberty to gain a little
security will deserve neither and lose both." Benjamin Franklin
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html