From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 111731,d4c1f7c0fe672a4 X-Google-Attributes: gid111731,public From: doug@eng.auburn.edu (Doug Hughes) Subject: Re: Different UNIX pro's and con's. Date: 1998/09/18 Message-ID: <1998Sep18.082442@netman.eng.auburn.edu>#1/1 X-Deja-AN: 392405533 Distribution: world References: <35F71814.1E0B911C@iakom.com> <35FB108D.F8FEFEBE@home.com> <6ti5t2$lbr$1@Venus.mcs.net> <35FDE10D.3380C3C1@home.com> <6tkqni$m41@web.nmti.com> <36019311.0@news.thefree.net> <6tsafu$4cr$1@camco.celestial.com> Followup-To: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec Organization: Auburn Univeristy Engineering Newsgroups: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec In article <6tsafu$4cr$1@camco.celestial.com>, ray@onager.celestial.com (Ray A. Jones) writes: > In article <36019311.0@news.thefree.net>, "sparky" writes: > |> > |> Peter da Silva wrote in message <6tkqni$m41@web.nmti.com>... > |> >In article <35FDE10D.3380C3C1@home.com>, Rev. Don Kool > |> wrote: > |> > |> > |> >Same as defunct processes. > |> > > |> >>bunch of junk in "/tmp", etc... > |> > > |> >There's a script to clean that out too. > |> > |> So what is this script, could you please show us the details of your script. > |> > |> > > > There must be a zillion scripts out there, but here is one that you could kick > off with a crontab entry. Run it every day. > > find /tmp -type f -atime +7 -exec rm {} \; > > That will find all ordinary files in /tmp that are more than 7 days old and > remove them. > > Change the number of days to anything you like, but it is a good idea to leave > tmp files there for at least a little while (someone may be using them). > Careful with that!! There are known bugs with find using -exec as root with symlinks that a hacker can use to erase files on your system (using rm) (race conditions) -- ____________________________________________________________________________ Doug Hughes Engineering Network Services System/Net Admin Auburn University doug@eng.auburn.edu