[Techtalk] undeletable file in solaris

Joana Botto joana.botto at gmail.com
Tue Dec 8 21:40:43 UTC 2009

Thank you Conor and Shirrell for your suggestions.
I've implemented Conor's solution and I believe it works out well.

Kind Regards,
Joana Botto

On Wed, Dec 2, 2009 at 7:29 PM, Conor Daly
<conor.daly-linuxchix at cod.homelinux.org> wrote:
> On Wed, Dec 02, 2009 at 04:36:08PM +0000 or so it is rumoured hereabouts,
> Joana Botto thought:
>> Hi,
>> I have a cron job that removes all the files older than 5 days under
>> /var/bla. In this folder there is also a directory that is removed
>> that shouldn't be deleted and I cannot disable the cronjob for this to
>> avoid. Unfortunately chatrr doesn't work out for Solaris boxes I
>> believe.
>> Does anyone know what might be a good way to implement this?
>> Regards,
>> Joana Botto
> Hi Joana,
> I can't remember the detail but there's something like '-o prune' as part
> of the find command that will exclude a dir from the search.  It might be
> as simple as:
>        -o <dir/to/keep> -o prune
> Conor
> --
> Conor Daly <conor.daly at cod.homelinux.org>
> Version: 3.1
> GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
> PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
> ------END GEEK CODE BLOCK------
> http://www.geekcode.com/ http://www.ebb.org/ungeek/

More information about the Techtalk mailing list