Re: find did not work
On Tue, Oct 26, 2004 at 12:33:49AM +0200, corerix wrote: I have a problem with findutils_4.1.20-4 , find and locate wont work . the problem existed till 2 weeks . so the wenn i try to compile a file i get following error find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty rmdir: zu wenige Argumente What does that mean ^ ? It is much easier for people to help with problems if you set your locale back to C before reporting bugs, given most of use don't understand German (or whichever language that is). based on an educated guess of what it means, I think it's a problem with rmdir saying Too many arguments, in which case you should limit the number of arguments xargs passes to it, using the -n option. maybe you can do -n 10, or even -n 1 if rmdir only allows one dir at a time in some cases. Also if you have subdirs your command will get annoyed, in this case: debian +-x +-y | +-bar +-z since find will return x y y/bar z and if you rmdir y before y/bar it will either fail or it will fail when it tries to remove the already gone y/bar. Adding -depth option to find will make it return x y/bar y z which will work fine. Also whoever wrote the code isn't doing things right. They should use find -depth with rmdir without -p, since the -p is only useful because they didn't use -depth and were causing errors. So add -depth to find, and remove -p from rmdir and it should make sense. Then add -n # to xargs if it is still complaining about the number of arguments. Len Sorensen
[Fwd: Re: find did not work]
Sorry, forgot to CC: to the list. Original Message Subject: Re: find did not work Date: Thu, 28 Oct 2004 17:32:10 +0200 From: Michael Siebenborn [EMAIL PROTECTED] To: Lennart Sorensen [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty rmdir: zu wenige Argumente What does that mean ^ ? based on an educated guess of what it means, I think it's a problem with rmdir saying Too many arguments, Indeed, this is german. But it means Too few arguments Example: [EMAIL PROTECTED]:~$rmdir rmdir: zu wenige Argumente ,,rmdir --help gibt weitere Informationen. [EMAIL PROTECTED]:~$export LC_ALL=C [EMAIL PROTECTED]:~$rmdir rmdir: too few arguments Try `rmdir --help' for more information. Seems to me, the find command doesn't find any directory to delete. Regards, Michael
Re: find did not work
On Thu, Oct 28, 2004 at 09:46:44AM -0600, Bob Proulx wrote: Lennart Sorensen wrote: corerix wrote: find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty rmdir: zu wenige Argumente What does that mean ^ ? based on an educated guess of what it means, I think it's a problem with rmdir saying Too many arguments, in which case you should limit the Please see Debian bug #176201. Is this the same problem? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=176201 This bug has been fixed in upstream cvs. The next upstream release of findutils will fix this problem. Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Thanks for reply , 'Please see Debian bug #176201. Is this the same problem?' yes thats the case . central aka corerix
Re: find did not work
Koef wrote: On Thu, Oct 28, 2004 at 10:01:11AM -0400, Lennart Sorensen wrote: On Tue, Oct 26, 2004 at 12:33:49AM +0200, corerix wrote: find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty rmdir: zu wenige Argumente What does that mean ^ ? based on an educated guess of what it means, I think it's a problem with rmdir saying Too many arguments, In fact, it says too few arguments :-) So it seems his debian directory has no subdirectories at all. If that is the case, and certainly possible, then run xargs with the -r option. I almost always use -print0 and -r0 together. find debian -type d -print0 | xargs -r0 rmdir -p --ignore-fail-on-non-empty Bob
find did not work
Hello , I have a problem with findutils_4.1.20-4 , find and locate wont work . the problem existed till 2 weeks . so the wenn i try to compile a file i get following error find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty rmdir: zu wenige Argumente make: *** [install] Fehler 123 kfind and dlocate works What i have to do ? any help are welcome greetings central