[UFO Chicago] find command problem

Brian Sobolak brian at planetshwoop.com
Fri Aug 11 08:52:44 PDT 2006


kannaiah at bsd.uchicago.edu wrote:
> Here is the response i got to my post on bugzilla: I could not make much
> sense
> of it...if you guys understand it..please explain it.
> The first part is my post on bugzilla.
>

So this is it in a nutshell:

1.  Download their script to /usr/local/bin/find, which on many systems,
/usr/local means stuff *you've* installed instead of what came with the
system.

2.  Type hash -r

Depending on your $PATH, that should probably work.

3.  If some programs are using /usr/bin/find (ie, hardcoded path instead
of just typing 'find' and thus getting the error), move /usr/bin/find to
/usr/bin/find-orig.  This should force everything to use your newly
installed find, since it will be the only one in the search path.

4.  If you still need the "old" find back, you can use /usr/bin/find-orig
in your scripts.

Be sure to check your $PATH env. variable to ensure it includes
/usr/local/bin.  This might vary depending on if your system's settings.

I didn't examine the script to see what it does.

HTH,

brian

> I am running Redhat Enterprise Linux:
>
> $uname -a
> Linux ccapps 2.6.9-34.0.2.ELsmp #1 SMP Fri Jun 30 10:32:04 EDT 2006
> x86_64
> x86_64 x86_64 GNU/Linux
>
> I get the find command warning as well. From reading the entries here,
> seems
> like there isnt a fix yet?
> Any more developments since the last post here in fixing this?
>
>
> Basically One of my applications could not execute the "find" command
> and quit
> with the following message:
>
> find: WARNING: Hard link count is wrong for .:this may be a bug in your
> filesystem driver. Automaticall turning on find's -noleaf option.
> Earlier
> results may have failed to include directories that should have been
> searched.
>
>
> ----------
> When i run the  find command independently, it gives me the warning but
> goes on
> to complete the task.
>
>
> please do suggest any solution..if there is one.
>
> thank you
>
> ------- Additional Comments From
> web-bugzilla.redhat.com at jankratochvil.net  2006-08-10 15:20 EST -------
> Created an attachment (id=133972)
>  -->
> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=133972&action=view)
> Workaround as "/usr/local/bin/find", it is not bulletproof.
>
> As a temporary workaround you may store this script as your:
> /usr/local/bin/find
> Rather also type afterwards (to use the right one): hash -r
> If some application uses directly "/usr/bin/find", wrap your binary
> appropriately ("mv /usr/bin/find /usr/bin/find" and edit this wrapper
> placed as
> "/usr/bin/find" to reference "/usr/bin/find-orig" instead).
>
> If you would like a priority hotfix for RHEL, please file a new Issue
> Tracker
> request instead.
>
> -----------------------------------------------------------
>
>
>
>
>
>
>
>
> Quoting kannaiah at bsd.uchicago.edu:
>
>> That indeed looks like a even better reference tool.
>> The library has a copy..i might just get it from there. Thanks guys.
>>
>> About the find command...i have put in my question on bugzilla too.
>> Seems
>> like
>> this is a common problem lots of people have experienced in various
>> versions
>> of
>> fedora..and now in redhat too:(
>>
>> The problem is that one of my biology application needs to do a 'find"
>> and
>> it
>> quits when it runs into this message.
>> But when i run the 'find' command independently it completes the task
> inspite
>> of
>> the message.
>>
>> -Kiran
>>
>>
>> oting "Aaron J. Enright" <aje at prairienet.org>:
>>
>> > On Thu, Aug 10, 2006 at 12:54:17PM -0500, Brian Sobolak wrote:
>> > > As for a general resource for learning the command line, I'd highly
>> > > recommend O'Reilly's "Unix Power Tools" book.  That's where I
>> learned
>> > > goodness like !!, $$, Ctrl-R, backticks, and an explanation of find
>> that
>> > > was quite lovely.  IT's not cheap ($70), but well worth it.
>> >
>> > I'll see that recommendation, and raise you one:
>> > The Unix CD Bookshelf
>> > http://www.amazon.com/gp/product/0596003927/
>> >
>> > It has html versions of Unix Power Tools and several other ORA Unix
>> > books.  This is particularly cool for UPT, as it is so heavily cross
>> > referenced.
>> >
>> > Another bonus is that it is easily copied to one's hard drive, which
>> > makes carrying several swell reference books around as easy as
>> carrying
>> > one's laptop.
>> >
>> > Used copies on Amazon are well worth it.  Your local public library
>> may
>> > have a copy.
>> >
>> > long-distance lurker
>> > -aaron
>> >
>> > --
>> > "Sleep is death without the responsibility"
>> >         -Fran Lebowitz, "Why I Love Sleep"
>> >
>> > _______________________________________________
>> > UFO Chicago -- Users of Free Operating Systems
>> > Free Software Rules -- Proprietary Drools!
>> > http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>>
>> -------------------------------------------------
>> This email is intended only for the use of the individual or entity to
>> which
>> it is addressed and may contain information that is privileged and
>> confidential.  If the reader of this email message is not the intended
>> recipient, you are hereby notified that any dissemination, distribution,
>> or
>> copying of this communication is prohibited.  If you have received this
>> email
>> in error, please notify the sender and destroy/delete all copies of the
>> transmittal.  Thank you.
>> -------------------------------------------------
>>
>> _______________________________________________
>> UFO Chicago -- Users of Free Operating Systems
>> Free Software Rules -- Proprietary Drools!
>> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo
>>
>>
>>
>>
>
>
>
>
>
> -------------------------------------------------
> This email is intended only for the use of the individual or entity to
> which
> it is addressed and may contain information that is privileged and
> confidential.  If the reader of this email message is not the intended
> recipient, you are hereby notified that any dissemination, distribution,
> or
> copying of this communication is prohibited.  If you have received this
> email
> in error, please notify the sender and destroy/delete all copies of the
> transmittal.  Thank you.
> -------------------------------------------------
>
> _______________________________________________
> UFO Chicago -- Users of Free Operating Systems
> Free Software Rules -- Proprietary Drools!
> http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/ufo
>
>
>


--
Brian Sobolak
http://www.planetshwoop.com/



More information about the ufo mailing list