Find command make me crazy

Hi Folks,
Find command make me crazy
Solaris 9
Kernel patch 118558-34
1) 2 Find command /usr/bin/find and /usr/local/bin/find
# ls -lh /usr/bin/find
-r-xr-xr-x 1 root bin 20K Apr 6 2002 /usr/bin/find
# ls -lh /usr/local/bin/find
-rwxr-xr-x 1 root bin 328K Jun 21 2002 /usr/local/bin/find
What is the actual different b/w these two find commands
2) For non root account users use /usr/local/bin/find command (by default) and give the following error when I try to remove the file with find command.
/usr/local/bin/find . -mtime +1 -exec ls -lh {} \;
Value too large for defined data type
Value too large for defined data type
Value too large for defined data type
Value too large for defined data type
Value too large for defined data type
If I use, /usr/bin/find . -mtime +1 -exec ls -lh {} \; --> this works
if I just just find command it shows permission denied
$ /usr/bin/find . -print
/usr/bin/find: cannot open .: Permission denied
The complete directory path has enough permission.

$ truss /usr/bin/find . -print
execve("/usr/bin/find", 0xFFBFFA9C, 0xFFBFFAAC) argc = 3
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
resolvepath("/usr/bin/find", "/usr/bin/find", 1023) = 13
stat("/usr/bin/find", 0xFFBFF870) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat("/usr/lib/libc.so.1", 0xFFBFF378) = 0
resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
open("/usr/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000
mmap(0xFF280000, 702900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
mmap(0xFF33C000, 24688, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
munmap(0xFF32C000, 65536) = 0
memcntl(0xFF280000, 117444, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/usr/lib/libdl.so.1", 0xFFBFF378) = 0
resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
open("/usr/lib/libdl.so.1", O_RDONLY) = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000
mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000
close(3) = 0
stat("/usr/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1", 0xFFBFF088) = 0
resolvepath("/usr/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1", "/usr/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 41
open("/usr/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
close(3) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
getustack(0xFFBFF6B4)
getrlimit(RLIMIT_STACK, 0xFFBFF6AC) = 0
getcontext(0xFFBFF4E8)
setustack(0xFF343A74)
brk(0x000261C0) = 0
brk(0x000281C0) = 0
time() = 1346071131
open(".", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, 0xFFBFEF48) = 0
close(3) = 0
open("./..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
fstat64(3, 0xFFBFEF48) = 0
getdents64(3, 0xFFBFC4F8, 8192) = 824
close(3) = 0
open("./../..", O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
fstat64(3, 0xFFBFEF48) = 0
getdents64(3, 0xFFBFC4F8, 8192) = 176
close(3) = 0
open("./../../..", O_RDONLY|O_NDELAY|O_LARGEFILE) Err#13 EACCES
fstat64(2, 0xFFBFEAE8) = 0
/usr/bin/findwrite(2, " / u s r / b i n / f i n".., 13) = 13
: cannot open write(2, " : c a n n o t o p e".., 14) = 14
.: write(2, " . : ", 3) = 3
Permission deniedwrite(2, " P e r m i s s i o n d".., 17) = 17
write(2, "\n", 1) = 1
_exit(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Why is the Find command in Notes always disabled?

    I would like to be able to locate text inside of notes in the Mac OS X version of Notes. The Find, Find Next, Find Previous, and Find Selected Text commands all exist in the Edit>Find sub-menu but they're always disabled. Is there something wrong with my installation of Mountain Lion or are these commands always disabled? How can I enable these Find commands in Notes?

    Entering text in the search sidebar filters the notes containing the text entered in the box, but it does not enable the Find commands nor highlight the text within the note. If you want to find the desired text within a very long note —and I'm sure we all have a few— you must copy the text into another application and use that application's Find command, make your changes, then paste the text back into the note.
    My question still stands. How can I enable the Find command which exists in Notes but which is always disabled? Is this simply a feature that was planned but never implemented? If the command was never intended to work in Notes, why was it included in the menu? Finally, since the Find command is standard in every other text editor, why would it not be included in Notes?
    As a Mac developer, I'm tempted to try and hack it into working, but I'd rather not have to.

  • "Find" command in Appleworks word processing--make results truly visible

    Hello, newbie here, so maybe this is the oldest gripe in the Appleworks 6 book.
    When I scrub a word document with the "Find" command, the hits are darn near impossible to see. Just a very faint outline. Is there some command that can bulk up the "found" box on the document, or perhaps fill it with an opaque yellow or some such?
    I really would like to save an hour or so of my lifetime by not glaring at the screen trying to spot the so-called "Find."
    My color vision is not perfect (the case with about 10% or men), so that might contribute to my problem. But if so, software developers should have a little more on the ball and avoid this.
    Many thanks,
    Rick Reed

    Hi Rick,
    Welcome to Apple Discussions and the AppleWorks forum.
    Definitely not the oldest complaint in the AW 6 book, as it's an OS X issue rather than an AppleWorks one. The rectangular outline that you (don't) see is a default highlight condition for a non-active window. When you are using the Find/Change dialogue that dialogue is the Active (ie. Front) window, and all others, including the window in which the search is taking place, are Inactive.
    While there's no cure for the problem, there are two things you can do to 1. work around it or 2. improve the situation.
    1. Move the Find/Change dialogue to a place where it will still be visible (ie. clickable) when you bring the document window to the front. Click on the document to bring it forward (and make the selection more visible); click the dialogue to continue the Find.
    2. You can set the system highlight colour in System Preferences > Appearence. The preset choices are all in the pastel range, but choose Other and you'll get the Colour Picker where you can choose a more intense colour. There is a trade-off here, though—the more saturated colours will make it difficult or impossible to read the highlighted word in the document when the window is active.
    Regards,
    Barry

  • LR V1.2 Having problems using the find Command

    Have just recently started using lightroom and so far managing most applications imported a series of photos and after import added keywords to them using the find function I cannot get images to appear. What seems to happen is that in the keyword tag and the folders any of the headings that contain the keyword become active the remainder show a zero no in number of images held in that folder but no images on screen
    can anyone assist me
    Peter

    thanks for the reply
    have switched of global filters, made sure that using the Find command have set keywords in "text box" and in the "rule box "contains". When I then enter a key word as soon as a type the first two or three letters
    a message appears on the screen no "No photos in the selected keyword Tag" Also when you look at the folders which have a series of numbers indicating the photos in the directory the first number in each set turns to 0 with the exception of the folder and sub folder were the images are
    So have not managed to make any progress
    Peter

  • Bridge CS3- My find command has quit working, any help?

    In my Bridge CS3 the find command cannot find any of the keywords that I spent hours adding. It has been working fine, but one day stopped. I have deleted the plist, the cache, and the recent workspace to no effect. I have not added any new software recently. It doesn't work if I am searching a file that I have open in Bridge so it is not a matter of not waiting long enough for the thumbnails to generate. Those were the only suggestions I found anywhere. Does anyone have any other suggestions? I am running this on a Mac if that makes a difference.

    I may have to upgrade as you suggest. I did find one thing that is interesting, though it doesn't explain where the problem comes from. If I open a folder in Bridge that holds files that I have added keyword to, when I close it Bridge can find those files with the find command. I am not sure why opening the folders would make a difference, but it seems to. This only works one when searching one sub-folder deep. If there is another folder in that, even though I've opened it, it will not find it.
    I guess until I am ready to spend the money to upgrade I will spend an evening opening all my keyworded folders. I better find a good video to watch while doing it!

  • Runtime Environment + Linux + the "find" command

    Hi everybody,
    I want to write a small program which makes it easy for me to use the find command with Linux. I have experience with Java but I have never used the runtime environment before. I am not sure how to best execute the "find" command. I tried this:
        public static void main(String[] args)
            String command = "find -name \"*\"";
            execute(command);
        private static void execute(String p_command)
            // Show the executed command.
            System.out.println(p_command);
            // Get the runtime object and handle the command.
            Runtime rt = Runtime.getRuntime();
            try
                // Execute the command.
                Process proc = rt.exec(p_command);
                // Show the output of the command.
                InputStream stdin = proc.getInputStream();
                InputStreamReader isr = new InputStreamReader(stdin);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                System.out.println("<OUTPUT>");
                while ( (line = br.readLine()) != null) System.out.println(line);
                System.out.println("</OUTPUT>");
                // Show the exit value of the process.
                int exitVal = proc.waitFor();
                System.out.println("Process exitValue: " + exitVal);
            catch (Exception e)
                System.out.println("Could not excecute: " + p_command);
        }This piece of code returns this:
    find -name "*"
    <OUTPUT>
    </OUTPUT>
    Process exitValue: 0This is not correct, because it should return something like this:
    [jethro@laptop FindNix]$ find -name "*"
    ./nbproject
    ./nbproject/project.xml
    ./nbproject/project.properties
    ./nbproject/private
    ./nbproject/private/private.properties
    ./nbproject/build-impl.xml
    ./nbproject/genfiles.properties
    ./build.xml
    ./src
    ./src/findnix
    ./src/findnix/Main.java
    ./test
    ./manifest.mf
    ./build
    ./build/classes
    ./build/classes/findnix
    ./build/classes/findnix/Main.classDoes anybody know what I am doing wrong?
    Best regards,
    Jethro Borsje

    It looks like you doing all correctly. I don't know what does Runtime.exec() do with passed arguments, but if specify command in following way:
    String command = "find -name *";
    'find' executed through Runtime.exec() behaves as if it was executed from command line with arguments -name "*".

  • Downgrade Mountain Lion to Lion - Makes me crazy!

    Hi there,
    Just want to remove Mountain Lion and get a fresh install of Lion.
    Pressed Command+R, used Disk Utility to Inizialize the disk, rebooted but I now get a logo (denied) instead the apple logo.
    Tried to press ALT and I selected the boot the dvd disk where there is Lion in it but it doesn't work too!
    Any guess?
    It makes me crazy!
    Thanks to everyone.

    Not true I have ML and run X11 no problem. The confusion might be because X11 was removed from the OS install and made a separate package to download.
    See https://xquartz.macosforge.org/trac/wiki/X112.7.5
    X11 while included with OS X was always really maintained by a  seperate group. With ML they just made the break more obvious. This actually helps because the X11 updates no longer depend on the OS X update cycle, they can issue updates and fixes for X11 when they need to/
    Apple maintains technical mailing lists in additon to these boards. For X11 support see https://lists.apple.com/mailman/options/x11-users/
    Message was edited by: Frank Caggiano

  • Find command not working

    I'm using Adobe Reader X and the find command is not finding words that I know are in the document. (It's also not working with Adobe Acrobat X.) It's not a scanned document and when I try with Adobe Reader 8 on another computer, it finds the words without any problem. Advanced Search also doesn't work.

    Make sure you update to the latest version of both Reader and Acrobat.

  • Tiger - Trouble Using Find Command

    Using Tiger 10.3.9...
    When I go to the desktop and click command - F and the find command opens
    - a click on the "others" tab and choose the hard drive I want to search in
    - and to get rid of all the other criteria and choose: name - contains & the keyword I am looking for... Then I hit return ...
    Very often it will not find something that I know is there... Just to prove this I will load the great program "easyfind 3.9" ... And it finds what Apple could not find it in just a few seconds...
    Q: Why is this happening... How can I fix this? Is it an Apple bug?
    BTW: spotlight does not have anything in the privacy area to block this...

    The Spotlight database, it's index of stuff, is hidden. REALLY hidden--not only is in a dot folder (.Spotlight-V100) at the root level of your drive, which makes it invisible to the Finder--but you can't open it even if you are the admin of your computer and use the Terminal. You can see it in Terminal with a list all command:
    ls -a /
    If you then try to see inside you get a "Permission denied" reply:
    Tiger:~ francine$ ls -a /.Spotlight-V100/
    ls: : Permission denied
    You have to become the super user (equivalent of root) to even list the contents of the folder:
    Tiger:~ francine$ sudo ls -a /.Spotlight-V100/
    total 190816
    .journalHistoryLog
    .store.db
    ContentIndex.db
    _exclusions.plist
    _rules.plist
    store.db
    The ContentIndex.db is the database of file contents, the store.db has the index of the metadata of each file. Don't know why there is both a store.db and a .store.db, no doubt Dr. Smoke would.
    Francine
    Francine
    Schwieder

  • Find command error

    When I run the find command as root in root I get the following error:
    find: cannot open /: I/O error
    I think this may be related to a previous post and I may have an unhealthy server. I've run fsck in single user mode to no avail.

    Boot from some other media (CDrom, network, other disk...). Then run fsck on the root filesystem.
    don't do it by booting from that filesystem to single-user.
    [cdrom boot....]
    # fsck /dev/rdsk/c0t0d0s0
    If that clears anything up, check messages for previous hardware errors and make sure you're up to date on patches.
    Darren

  • Find command with file size

    Hello again,
    With my find command I'm trying to get my output to include the file size as it would show in Finder. I believe it's called the "physical" size. Am I going in the right direction with this code or is there a better way?
    find /Users/username/Library -name "foo" -prune -maxdepth 3 -exec du -hs {} ;
    Thanks again for your input,
    Rick

    If going down the awk route, might try a slightly different approach
    find /Users/username/Library
    -name "foo"
    -prune
    -maxdepth 3
    -ls | awk '{print $2 "
    " $NF;}'
    The -ls avoids invoking a subprocess for every file just so the du command can be called.
    The down side is that you do not get benefit of the *du -h* option to humanize the values.
    Another approach that would invoke du fewer times would be to put xargs in the pipeline
    find /Users/username/Library
    -name "foo"
    -prune
    -maxdepth 3
    -print0 | xargs -0 du -hs | awk '{print $1 "
    " $2;}'
    xargs will bundle up a group of files for each du command to process in one invocation.
    The -print0 and -0 will make sure that spaces in file paths do not cause problems for the du command.
    Oh yea, if you are going to also be performing a bunch of find commands together, you could do all of those commands in a single pipeline
    ( find /path1 -name ... -print0;
    find /path2 -name ... -print0;
    find /path3 -name ... -print0
    ) | xargs -0 du -hs | awk '{print $1 "
    " $2;}'
    Message was edited by: BobHarris

  • A Unix question: find command

    Hi all,
    Sorry for posting a Unix question here.
    In the following directory I have:
    /opt/SonicSoftware/SonicMQ/samples/TopicPubSub/DurableChat>ls
    DurableChat.class DurableChat.java Readme.txt
    However, if I try:
    /opt/SonicSoftware>find -iname DurableChat.class
    The path can not be found, it just gives me the prompt back; I don't know what the reason is. Any idea?

    I'm just wondering can the symbolic link be the
    reason that class file can not be found (I guess, not
    though, b/c other classes can be found):What do you mean "not found"?
    Do you mean why the find command isn't finding it? Yes, that's why. But now that you know, you can use -follow.
    Or do you mean the VM is unable to find the class at runtime? I'm almost certain the classloader can follow symbolic links in the classpath, so I don't think that's the problem.
    >
    /opt/SonicSoftware/SonicMQ/samples/TopicPubSub/Chat>..
    /../SonicMQ.sh DurableChat -u AlwaysUp
    Exception in thread "main"
    java.lang.NoClassDefFoundError: DurableChat
    Should I change the path that it won't be symbolic
    anymore?Try it and see if it fixes it. I'd be surprised, but you never know. If making it not a link fixes it, then maybe that's what you have to do. If it doesn't fix it, then you know you have to look somewhere else.

  • HT1635 How do i find the make of my Macbook Pro?

    How do I find the make of my MacBook Pro 13-inch, Mid 2010?

    what do you mean by "the make"?

  • HT202447 Finder frizzes, makes my iMac so slow ...

    Since my system was updated automatically installing java 8, Finder frizzes, makes my computer so slow and I have to end up rebooting the computer. Any advise? How can I fix this problems? Thank you

    In the Utilities Folder, launch "Java Preferences" and turn it off.
    Have you updated to the latest Java software via Software Update?

  • Find Command in iCal doesn't work

    I have tried to use the Find Command in iCal. It doesn't work either from the Edit pull down command nor the keyboard command. Please try this in your setup and tell me whether it works?
    I have an Intel Mac Mini running 10.4.9.
    Bob Gallant

    Hi Bob,
    It works for me.
    Find will only search in selected calendars. Do you have the relevant calendars checked in the calendar list? (you can select all calendars by Command-Clicking one checkbox)
    Best wishes
    John M

Maybe you are looking for