Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Joerg Bruehe <joerg@sql.de>
Subject: Re: delete "very" old files
Date: 2000/09/27	[thread overview]
Message-ID: <39D21491.8EE08C19@sql.de> (raw)
In-Reply-To: 8qsb8g$4pl$1@news0.skynet.be

Hello ! 

Daniel Willems wrote:
> 
> Hello,
> 
> Since I'm new to Unix I need some help.

Convince your company you need a course if you are to admin a system - 
nobody is a "born admin", whatever marketing claims about "ease of use". 

> 
> Our application generates temporary files and never deletes them.

No comment - to avoid being sued for insults. 

> This is filling up our disks and them the application crashes.

"Works as designed" differs from "Works as intended", obviously. 
Also sounds like lack of testing before / at delivery. 

> 
> Therefor I'm looking for a script that deletes the tmp-files which are older
> than 1 week.

RTFM: shell programming, pipes, builtin "xargs"; "find" 

  find /where/they/are -type f -name some_pattern_* -mtime +7 | xargs rm
-i 

This sure is a Unix FAQ, try "Deja" for more hints or ready solutions. 
Keywords might be "cleanup", "temp" "files", "disk full", or similar. 


HTH, 
Joerg Bruehe 

-- 
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)
mailto: joerg@sql.de



  reply	other threads:[~2000-09-27  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-27  4:00 delete "very" old files Daniel Willems
2000-09-27  4:00 ` Joerg Bruehe [this message]
2000-09-28  4:00   ` Joerg Bruehe
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox