[Techtalk] undeletable file in solaris

Conor Daly conor.daly-linuxchix at cod.homelinux.org
Wed Dec 2 19:29:34 UTC 2009


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>
-----BEGIN GEEK CODE BLOCK-----
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