[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tidy not deleting links and/or directories
From: |
Chris Edillon |
Subject: |
Re: tidy not deleting links and/or directories |
Date: |
Tue, 11 Feb 2003 21:04:57 -0400 (GMT+4) |
On 11 Feb 2003, Jeff Sheltren wrote:
> Hi, I am having a problem trying to clean out /tmp using cfengine's tidy
> action. What I would like to do is delete everything in /tmp.
>
> Here is a sample script that does not act as I feel it should:
> [root@scooby cf]# cat cf.test
> control:
>
>
> actionsequence = ( tidy )
>
>
> tidy:
>
>
> /tmp pat=* recurse=0 age=0 rmdirs=all dirlinks=delete
> links=tidy
>
rmdirs=all only deletes empty directories, and you have recurse=0
meaning that the directory contents are never deleted as tidy never
descends into the subdirectories. try setting R=inf.
chris