Re: Help with shell script

2003-08-01 Thread Anthony E. Greene
On 31-Jul-2003/11:02 -0500, Peram's List <[EMAIL PROTECTED]> wrote: >I'd appreciate if you can guide me/help me on a script on deleting >files/directories more than two days old on Redhat servers. man tmpwatch Tony -- Anthony E. Greene OpenPGP Key: 0x6C94239D/7B3D BD7D

Re: Help with shell script

2003-07-31 Thread Peram's List
Thanks for your help guys. I appreciate that. - Original Message - From: "Michael Gargiullo" <[EMAIL PROTECTED]> To: "redhat mailing list" <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2003 11:10 AM Subject: Re: Help with shell script > Sure post what

Re: Help with shell script

2003-07-31 Thread James Gibbon
Michael Gargiullo wrote: > find / -mtime +2 -type d -exec rm -rf \{} \; > > I wonder how long that will run before it eats itself? Hasn't > anyone wanted to do that just to see... A system administrator colleague of mine did effectively exactly that, a few years ago, on a production Solaris ma

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> *Note: The above line is a joke, please don't run it on your system Ah! I seee. Long day. Jon > > -- > Michael Gargiullo <[EMAIL PROTECTED]> > Warp Drive Networks > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> find / -mtime +2 -type d -exec rm -rf \{} \; > > I wonder how long that will run before it eats itself? Hasn't anyone > wanted to do that just to see... > ;) I wouldn't do that, because the directory doesn't change if the file contents change. Jon > > *Note: The above line is a joke, please

Re: Help with shell script

2003-07-31 Thread Michael Gargiullo
On Thu, 2003-07-31 at 12:11, Jonathan Bartlett wrote: > > I'd appreciate if you can guide me/help me on a script on deleting > > files/directories more than two days old on Redhat servers. > > find WHATEVER -mtime +2 -type f -exec rm \{} \; > > substitute WHATEVER with the top-level directory yo

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> I'd appreciate if you can guide me/help me on a script on deleting files/directories > more than two days old on Redhat servers. find WHATEVER -mtime +2 -type f -exec rm \{} \; substitute WHATEVER with the top-level directory you want to purge on. Follow this with. find WHATEVER -mtime +2 -ty

Re: Help with shell script

2003-07-31 Thread Michael Gargiullo
Sure post what you have so far. On Thu, 2003-07-31 at 12:02, Peram's List wrote: > Hi all, > I'd appreciate if you can guide me/help me on a script on deleting > files/directories more than two days old on Redhat servers. > > Regards, > > Peram -- Michael Gargiullo <[EMAIL PROTECTED]> Warp Dr

Help with shell script

2003-07-31 Thread Peram's List
Hi all, I'd appreciate if you can guide me/help me on a script on deleting files/directories more than two days old on Redhat servers.   Regards,   Peram