Unix questions - Re: How to find files more than 3 minutes old?

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > December 2004 > Re: How to find files more than 3 minutes old?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How to find files more than 3 minutes old?
Alan Connor

2004-12-24, 3:02 am

On Thu, 23 Dec 2004 21:48:46 GMT, Dan Mercer <dmercer@mn.rr.com> wrote:
>
>
>
> "Alan Connor" <zzzzzz@xxx.yyy> wrote in message news:YPGyd.7696$9j5.6467@newsread3.news.pas.earthlink.net...
>: On Thu, 23 Dec 2004 13:00:19 -0800, sfrady <sfrady@mail.sdsu.edu>
>: wrote:
>:
>: > I have a requirement to find files in a busy directory on our
>: > Unix server and delete them if +3 minutes old. I currently
>: > have scripts which delete files more than so many days old, but
>: > don't know the ksh syntax for getting the test down to minutes.
>: >
>: > If anyone knows how to do this, I'd really appreciate some
>: > advice! Thank you, Susan Frady San Diego State University
>: >
>:
>: Your subject and question contain direct quotes from the find
>: man page.
>:
>: Maybe you should read it.
>:
>: man find
>:
>: But, of course, you already have, haven't you, Matt?
>
> Hey, snotty. Only GNU find has switches for minutes. If he is using
> a SysV find, it's no help.


I beg your pardon! My nose is not running.

:-|

Pretty sure this is Matt again, pretending he's clever.

Could be wrong, though, and you are right to take no chances.

My apologies to the OP if I am.

Can you _really_ imagine someone who can't handle this common
scripting problem having administrative priveleges and responsibilities on a "busy Unix server"?

<snip>

AC

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com