Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Christopher Chan
On Wednesday, January 27, 2010 11:35 AM, Kevin Krieser wrote: > > On Jan 26, 2010, at 6:06 PM, Les Mikesell wrote: > >> On 1/25/2010 8:49 AM, Chan Chung Hang Christopher wrote: >>> Anas Alnaffar wrote: I tried to run this command find -name "*.access*" -mtime +2 -exec rm {} \; >

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Kevin Krieser
On Jan 26, 2010, at 6:06 PM, Les Mikesell wrote: > On 1/25/2010 8:49 AM, Chan Chung Hang Christopher wrote: >> Anas Alnaffar wrote: >>> I tried to run this command >>> >>> find -name "*.access*" -mtime +2 -exec rm {} \; >>> >> >> Should have been: find ./ -name \*.access\* -mtime +2 -exec rm -

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Christopher Chan
Les Mikesell wrote: > On 1/25/2010 8:49 AM, Chan Chung Hang Christopher wrote: >> Anas Alnaffar wrote: >>> I tried to run this command >>> >>> find -name "*.access*" -mtime +2 -exec rm {} \; >>> >> Should have been: find ./ -name \*.access\* -mtime +2 -exec rm -f {} \; > > No difference. If the p

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Les Mikesell
On 1/25/2010 8:49 AM, Chan Chung Hang Christopher wrote: > Anas Alnaffar wrote: >> I tried to run this command >> >> find -name "*.access*" -mtime +2 -exec rm {} \; >> > > Should have been: find ./ -name \*.access\* -mtime +2 -exec rm -f {} \; No difference. If the path is omitted, current versio

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Kwan Lowe
On Tue, Jan 26, 2010 at 1:15 PM, Les Mikesell wrote: > On 1/26/2010 11:42 AM, James B. Byrne wrote: >> >> On Mon, January 25, 2010 13:40, Les Mikesell wrote: >> . >>> >>> I'd say it is more likely that the command that resulted in an error >>> wasn't exactly what was posted or there is a filesyste

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Kurt Newman
What was your original find command? Robert Nichols wrote: > Les Mikesell wrote: >> On 1/26/2010 11:42 AM, James B. Byrne wrote: >>> On Mon, January 25, 2010 13:40, Les Mikesell wrote: >>> . I'd say it is more likely that the command that resulted in an error wasn't exactly what was post

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Robert Nichols
Les Mikesell wrote: > On 1/26/2010 11:42 AM, James B. Byrne wrote: >> On Mon, January 25, 2010 13:40, Les Mikesell wrote: >> . >>> I'd say it is more likely that the command that resulted in an error >>> wasn't exactly what was posted or there is a filesystem problem. >>> >> I do not consider a fil

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread Les Mikesell
On 1/26/2010 11:42 AM, James B. Byrne wrote: > > On Mon, January 25, 2010 13:40, Les Mikesell wrote: > . >> >> I'd say it is more likely that the command that resulted in an error >> wasn't exactly what was posted or there is a filesystem problem. >> > > I do not consider a file system issue, as in

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-26 Thread James B. Byrne
On Mon, January 25, 2010 13:40, Les Mikesell wrote: . > > I'd say it is more likely that the command that resulted in an error > wasn't exactly what was posted or there is a filesystem problem. > I do not consider a file system issue, as in error or corruption, highly probable in this case. It m

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread Kevin Krieser
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of James B. Byrne Sent: Monday, January 25, 2010 10:06 AM To: Robert Nichols Cc: centos@centos.org Subject: Re: [CentOS] The directory that I am trying to clean up is huge On Mon, January 25

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread Les Mikesell
James B. Byrne wrote: > On Mon, January 25, 2010 10:31, Robert Nichols wrote: > \ >> Now if the "{}" string appears more than once then the command line >> contains that path more than once, but it is essentially impossible >> to exceed the kernel's MAX_ARG_PAGES this way. >> >> The only issue with

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread James B. Byrne
On Mon, January 25, 2010 10:31, Robert Nichols wrote: \ > > Now if the "{}" string appears more than once then the command line > contains that path more than once, but it is essentially impossible > to exceed the kernel's MAX_ARG_PAGES this way. > > The only issue with using "-exec command {} ;" f

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread Chan Chung Hang Christopher
Anas Alnaffar wrote: > I tried to run this command > > find -name "*.access*" -mtime +2 -exec rm {} \; > Should have been: find ./ -name \*.access\* -mtime +2 -exec rm -f {} \; ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/l

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread m . roth
> fred smith wrote: >> On Mon, Jan 25, 2010 at 03:14:54AM -0800, John Doe wrote: >>> From: Anas Alnaffar I tried to run this command find -name "*.access*" -mtime +2 -exec rm {} \; and I have same error message >>> How many "*.access*" are there...? >>> >> if there are so many that

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread Les Mikesell
fred smith wrote: > On Mon, Jan 25, 2010 at 03:14:54AM -0800, John Doe wrote: >> From: Anas Alnaffar >>> I tried to run this command >>> find -name "*.access*" -mtime +2 -exec rm {} \; >>> and I have same error message >> How many "*.access*" are there...? >> >> JD > > if there are so many that y

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread fred smith
On Mon, Jan 25, 2010 at 03:14:54AM -0800, John Doe wrote: > From: Anas Alnaffar > > I tried to run this command > > find -name "*.access*" -mtime +2 -exec rm {} \; > > and I have same error message > > How many "*.access*" are there...? > > JD if there are so many that you're finding the previo

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread John Doe
From: Anas Alnaffar > I tried to run this command > find -name "*.access*" -mtime +2 -exec rm {} \; > and I have same error message How many "*.access*" are there...? JD ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-25 Thread Tony Mountifield
In article , Kevin Krieser wrote: > > On Jan 23, 2010, at 6:45 AM, Robert P. J. Day wrote: > > > On Sat, 23 Jan 2010, Marcelo M. Garcia wrote: > > the find ... -exec variation will invoke a new "rm" command for > > every single file it finds, which will simply take more time to run. > > beyond

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Robert Nichols
Robert Heller wrote: > At Sat, 23 Jan 2010 12:43:40 + CentOS mailing list > wrote: > >> Just curious. What is the difference between the command above and "find >> -exec rm -f {} \;" ? > > The command "find -exec rm -f {} \;" collects ALL of the names > "find " as a single command line,

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Robert Heller
At Sat, 23 Jan 2010 12:43:40 + CentOS mailing list wrote: > > Robert Heller wrote: > > At Sat, 23 Jan 2010 15:23:58 +0300 CentOS mailing list > > wrote: > > > >> Content-Language: en-us > >> > >> > >> The directory that I am trying to clean up is huge . every time get this > >> error msg

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Kevin Krieser
> > find on CentOS 5.4 supports > > find -exec {} +; > > which avoids the negative effect of spawning new subprocesses when using > "-exec {} \;" > > find on CentOS 4.8 does not support that. I'll have to give that a try sometime. A person gets used to a subset of a command, and doesn't nec

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Alexander Dalloz
Am 23.01.2010 14:12, schrieb Kevin Krieser: > > On Jan 23, 2010, at 6:45 AM, Robert P. J. Day wrote: > >> On Sat, 23 Jan 2010, Marcelo M. Garcia wrote: >> >>> Robert Heller wrote: > > -bash: /usr/bin/find: Argument list too long 'man xargs' find -print | xargs rm

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Kevin Krieser
On Jan 23, 2010, at 7:07 AM, Anas Alnaffar wrote: > I tried to run this command > > find -name "*.access*" -mtime +2 -exec rm {} \; > > > and I have same error message > > > > Anas > There must have been more to it, since the command above is invalid. you need to specify where to star

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Kevin Krieser
On Jan 23, 2010, at 6:45 AM, Robert P. J. Day wrote: > On Sat, 23 Jan 2010, Marcelo M. Garcia wrote: > >> Robert Heller wrote: -bash: /usr/bin/find: Argument list too long >>> >>> 'man xargs' >>> >>> find -print | xargs rm >>> >> Hi >> >> Just curious. What is the difference betw

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Anas Alnaffar
To: CentOS mailing list Subject: Re: [CentOS] The directory that I am trying to clean up is huge Anas Alnaffar wrote: > The directory that I am trying to clean up is huge . every time get this > error msg > > > > -bash: /usr/bin/find: Argument list too long >

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Kai Schaetzl
http://www.google.com/search?as_epq=Argument+list+too+long Kai -- Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Robert P. J. Day
On Sat, 23 Jan 2010, Marcelo M. Garcia wrote: > Robert Heller wrote: > >> > >> -bash: /usr/bin/find: Argument list too long > > > > 'man xargs' > > > > find -print | xargs rm > > > Hi > > Just curious. What is the difference between the command above and "find > -exec rm -f {} \;" ? the find

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Marcelo M. Garcia
Robert Heller wrote: > At Sat, 23 Jan 2010 15:23:58 +0300 CentOS mailing list > wrote: > >> Content-Language: en-us >> >> >> The directory that I am trying to clean up is huge . every time get this >> error msg >> >> >> >> -bash: /usr/bin/find: Argument list too long > > 'man xargs' > > fin

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Robert Heller
At Sat, 23 Jan 2010 15:23:58 +0300 CentOS mailing list wrote: > > Content-Language: en-us > > > The directory that I am trying to clean up is huge . every time get this > error msg > > > > -bash: /usr/bin/find: Argument list too long 'man xargs' find -print | xargs rm > > > >

Re: [CentOS] The directory that I am trying to clean up is huge

2010-01-23 Thread Marcelo M. Garcia
Anas Alnaffar wrote: > The directory that I am trying to clean up is huge … every time get this > error msg > > > > -bash: /usr/bin/find: Argument list too long > > > > > > Please advise > > > > *Anas * Hi Could you put the complete command? Please provide more details. Regards m