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 error or

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 file system issue,

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 posted or there is a

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 lesmikes...@gmail.com 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

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 versions of find

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 path is omitted,

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 -f {} \; No

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 {} \; Should have been: find

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

2010-01-25 Thread Tony Mountifield
In article c31ed75a-0115-44fc-940d-c2956c46e...@sbcglobal.net, Kevin Krieser k_krie...@sbcglobal.net 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

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

2010-01-25 Thread John Doe
From: Anas Alnaffar a.alnaf...@tijaritelecom.com 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

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 a.alnaf...@tijaritelecom.com 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

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 a.alnaf...@tijaritelecom.com 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

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 a.alnaf...@tijaritelecom.com 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 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

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 {} ; for a huge

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 using -exec

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,

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

2010-01-23 Thread Anas Alnaffar
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 ___ CentOS mailing list CentOS@centos.org

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 mg.

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 centos@centos.org 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 mumble -print | xargs rm

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 centos@centos.org 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

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 mumble -print | xargs rm Hi Just curious. What is the difference between the command above and find numble -exec rm -f {} \; ? the find ... -exec

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 Anas Alnaffar
I tried to run this command find -name *.access* -mtime +2 -exec rm {} \; and I have same error message Anas -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Marcelo M. Garcia Sent: Saturday, January 23, 2010 3:34 PM To: CentOS

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 start the find.

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 mumble -print | xargs rm Hi Just curious. What is the

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 path -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

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 centos@centos.org wrote: Robert Heller wrote: At Sat, 23 Jan 2010 15:23:58 +0300 CentOS mailing list centos@centos.org wrote: Content-Language: en-us The directory that I am trying to clean up is huge . every time get this

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 centos@centos.org wrote: Just curious. What is the difference between the command above and find numble -exec rm -f {} \; ? The command find mumble -exec rm -f {} \; collects ALL of the names find numble as a