[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'tidy' question
From: |
John S. J. Anderson |
Subject: |
Re: 'tidy' question |
Date: |
Mon, 21 Jun 2004 17:42:50 -0400 |
User-agent: |
Gnus/5.090024 (Oort Gnus v0.24) XEmacs/21.4 (Security Through Obscurity, linux) |
Armin Wolfermann <aw@osn.de> writes:
> * John S. J. Anderson <janderso@ncbi.nlm.nih.gov> [16.06.2004 00:07]:
>> I'd like to define a 'tidy' action that will clean up /tmp on our
>> machines. However, I need to exclude files owned by root from this
>> tidy action. It seems like the way to do this is to use a filter,
>> but I can't seem to find the filter syntax to say "all users save
>> this one".
>>
>> Is a filter the right approach? If so, what would that filter look
>> like?
>
> I would use something like:
>
> filters:
> { notroot
> Type: "reg"
> Owner: "root"
> Result: "Type.!Owner"
> }
Thanks, this is basically what I ended up doing -- although I had to
expand Type to be 'reg|link|dir' really get the effect that I wanted.
thanks again,
john.
--
John S J Anderson, Ph.D. [ Contractor ] +1.301.402.7499
Chief Penguin Herder & Linux Team Lead, Systems Group, NCBI/NLM/NIH
"So here's a picture of reality: (picture of circle with lots of
sqiggles in it) As we all know, reality is a mess." -- Larry Wall