home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!inetg1!news.oryx.com!huey!xcpbhf
- From: xcpbhf@huey (boyce h fullmer)
- Newsgroups: comp.unix.aix
- Subject: Re: find bug
- Message-ID: <Brwnxy.My2@oryx.com>
- Date: 24 Jul 92 18:13:10 GMT
- References: <1992Jul22.120003.15122@dickens.com>
- Sender: usenet@oryx.com (USENET News System)
- Distribution: usa
- Organization: Oryx Energy, Dallas, Texas.
- Lines: 27
- X-Newsreader: Tin 1.1 PL4
-
- fred@dickens.com (Fred Stearns) writes:
- : In article <1992Jul21.181917.749@ccd.harris.com> tvd@ccd.harris.com (Tom Denham) writes:
- : >From tvd Tue Jul 21 09:25:04 1992
- : >Subject: find
- : >To: nam (Noahal A. Mundt)
- : >Date: Tue, 21 Jul 92 9:25:04 EDT
- : >X-Mailer: ELM [version 2.3 PL11]
- : >
- : >Noahal, I checked this out and I don't think it's true.
- : >
- : >>I recently realized that /etc/skulker on my machines was not clearing out
- : >>/tmp and /etc.tmp as it should. A bit of playing around and I discovered
- : >>that the problem is with find. The following command, for instance:
- : >
- : >> find /tmp -mtime +1 -type f -exec /bin/rm {} \;
- : >
- :
- : Check out the command xargs. You can do the following:
- :
- : find /tmp -mtime +1 -type f -print | xargs rm
- :
- : It is much more efficient as rm is fork/exec'd once for a
- : bunch of files. As opposed to once for each file.
- :
-
- You might also want to check that your .cshrc does not echo any text. This was the
- cause of a similar problem at our site.
-