"Find" command causes freeze
This seems a little odd. On various pages of the Plain Dealer, like the one I've linked here, executing a simple "find" (to find text on the page) will cause the beach ball.
I'm using Safari 1.3.1 and I've emptied the cache and trashed preferences. "Find" seems to work fine on other sites where I've tried it.
Note that if you've never gone to the PD pages you'll hit an initial page that asks your zip code and gender--it's not registration, just a couple questions that I suppose creates a cookie.
Hi, Bookalaka -
If Sherlock, or an alias to it, is not in the Apple Menu Items folder (in System Folder), then the Find function (Command-F) will not work. If that is the case, replace that item - move either Sherlock itself, or place an alias to it, into the Apple Menu Items folder.
Note - if you use Internet Explorer, and want to be able to use the supplemental toolbar icon for Sherlock, then Sherlock itself must be placed in the Apple Menu Items folder (IE does not recognize an alias to it).
If for some reason you are missing Sherlock completely, you can replace it fairly easily. Look in the System Folder on any OS 9.1 or later Install CD; you'll find it in the Apple Menu Items folder. Just copy it to your hard drive.
Similar Messages
-
Running find command cause multiple exceptions.
I have been playing around with the differences 'between' ls and 'find' commands.
# find / -type d
If I run this code with Arch Linux as the main OS, it stalls the OS intermittently and this type of output is displayed.
http://i107.photobucket.com/albums/m297 … 095343.jpg
Note: In VirtualBox this code runs fine.
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --@OP sorry for hijacking your thread
Well, the errors are going to stderr, so you might as well send stdout to /dev/null in your examples. And unfortunately it doesn't work when run as non-root:
$ find / -xdev >/dev/null
find: `/usr/share/polkit-1/rules.d': Permission denied
$ find / -xdev -ignore_readdir_race >/dev/null
find: `/usr/share/polkit-1/rules.d': Permission denied
Edit: also it's not "Permission denied" errors being masked avoided in your examples anyway, which is probably the real reason it doesn't work as non-root. But thanks for playing
Edit2: Thanks, internets:
find / -type d ! -readable ! -executable -prune -o -print
Last edited by alphaniner (2015-03-16 19:49:09) -
Find Fonts causes freezing/crash in CS6
Running ID CS6 on a Windows XP, SP3 system. I have several IDML files (FrameMaker conversions) that I am editing. So far, no issues, but now, InDesign will freeze when I try to globally update the fonts (mostly body fonts). I'm moving from Times in the original to Times New Roman in my edits - nothing out of the ordinary.
Is this an issue that others have reported, or a case of a corrupt file?Yes, occuring when I try to update any font that appears in many places throughout the document. After some testing, I'm beginning to think the original FrameMaker file is corrupting when I export - of my 30 chapters, this is the only one it's happening to. I appreciate your help!
-
Why does the copy/move command cause the application to freeze up?
The move/copy command causes the application to freeze up. I am using PSE8
The move/copy command causes the application to freeze up. I am using PSE8
-
Find/Change window freezes - Appleworks 6.2.9
When I use the Appleworks Find/Change window for the first time after booting up my new iMac, the Find/Change window freezes up and then disappears and then the opened document on my desktop disappears from my desktop, too. I have Appleworks 6.2.9 and a new iMac purchased a few months ago. Why does the Find/Change window freeze up and do that? How do I fix this? Thanks for any help!
The most likely cause is corrupt preferences & is easily fixed by deleting the AppleWorks preferences.
-
Can i get access to the find command in Word via activeX?
Does anyone know if it is possible to search through a word document using activeX commands from labview? Basically i need to use the "find" command from Word.
Thanks for your helpExcellent thanks a lot.
I've now got the search function working but im having a little trouble getting the results i want. What do you mean by "new selection"? is this the output refnum from the execute node?
Im looking to search through a word document for a certain paragraph number then highlight this paragraph in some way.
At present i have used your method to find the section number and then used a frame property on the output refnum followed by select method cascaded from this. This has the effect of selecting the number causing the word window to jump to the desired point but only the first line of the paragraph is shown because it places the found text at the bottom of the screen.
Do you have any suggestions as to how i could select the en
tire paragraph? I also cannot get any output from the select method in this way, am i using it incorrectly?
Thanks again for your time
Alan -
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,
RickIf 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 -
"Find " command andshell scripting
hi,
I recently tried to write a shell script that looks in a directory and deletes all files matching a certain pattern which are more than 45 days old.
I used the "find" command. the problem is that the find command recursively searches all the subdirectories present. I NEED TO RESTRICT THIS AND ENSURE THAT THE SEARCH IS RESTRICTED TO THE SPECIFIED DIRECTORY ONLY.
the script is as follows:
for file in `find . -mtime +15 -print`
do
if [ -f $file ]
then
echo "Removing $file that existed more than 15 days."
rm $file
#use mv command to some temp dir for testing
fi
done.
I am on a solaris 5.6 machine and need help that will work on that version. I tried other commands such as locate and glimpse but the ksh does not seem to recognze tham at all. Also there is man page entry for these commands.
In solaris, the find command comes with an option called -depth that restricts the depth of the search but i am not able to work it. The man pages abt this option says:
-depth : Always true; causes descent of the directory
hierarchy to be done so that all entries in a
directory are acted on before the directory
itself. This can be useful when find is used
does anyone know how to work this?
Also, the man page mentions that the depth is determined by an environment variable PATH_MAX. I am not able toset this variable. The man page for that says:
find will be able to descend to arbitrary depths in a file hierarchy and will not fail due to path length limitations (unless a path operand specified by the application exceeds PATH_MAX requirements).
Can someone tell me how to restrict this?
I would appreciate it if you could cc a copy to my mail id :[email protected] as i have a lot of trouble accessing the net
Regards,
Saileshhi
i got a way but why dont you break it in to two scripts first script will search for the file path and redirects in to a file and then when its search is end start the removing your file by grep the file path from that file i think its simple -
Safari 6 causing freeze to OSX
Since i upgraded to Mountain Lion and Safari got upgraded too to 6, I started getting this issue especially when i play flash games on facebook or watching a video on youtube, i guess it's related to flash player i don't know. It starts ok and starts the flash content normally but 5 minutes later it freezes and causes freeze to the whole system i can't do anything unless i hit option+command+esc to force quite safari, once i shut it down the system starts working normally like charm! .. I have 2011 15" macbook pro.
I made some reserch on the internet about this issue and all i found is just "reset safari" and deleting some extensions or stuff and that never worked for me!
I check for any updates for flash player or safari almost everyday hoping to get rid of this problem.
btw, I'm using Firefox and it works normally with flash contents and youtube.Uninstall the currently installed Flash plugin (required for both YouTube and Facebook) then reinstall new.
Uninstall > Troubleshoot Flash Player | Mac OS
Very important to uninstall the old plugin first.
Then reinstall new > http://get.adobe.com/flashplayer/?promoid=JZEFT
Then open System Preferences > Flash Player then select the Advanced tab.
Click: Delete All
Quit and relaunch Safari.
From the Safari menu bar click Safari > Reset Safari
Select: Clear History (also empties the cache)
Deselect the remaining boxes then click Reset.
Try a video. -
Warnings in FileReference - can not find the cause
I'm trying to make a loader of a few photos (use FileReference). I get the warnings, but I do not know the reason for their appearance.
warning: unable to bind to property 'fr' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'name' on class 'flash.net::FileReference'
warning: unable to bind to property 'data' on class 'flash.net::FileReference'
warning: unable to bind to property 'fr' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'name' on class 'flash.net::FileReference'
warning: unable to bind to property 'data' on class 'flash.net::FileReference'
CODE:
import mx.events.CollectionEvent;
import flash.net.FileReferenceList;
import mx.collections.ArrayCollection;
[Bindable]
private var photos:ArrayCollection = new ArrayCollection;
private var frList:FileReferenceList = new FileReferenceList;
private function init():void
photos.addEventListener(CollectionEvent.COLLECTION_CHANGE,function():void
startUploadButton.enabled = (photos.length>0);
clearPhotosButton.enabled = (photos.length>0);
frList.addEventListener(Event.SELECT,addPhotos);
private function selectPhotos():void
var fileFilter:FileFilter = new FileFilter("Images jpeg","*.jpg;*.jpeg");
frList.browse([fileFilter]);
private function addPhotos(e:Event):void
for (var i:uint = 0; i < frList.fileList.length; i++)
var elem:Object = new Object;
elem.fr = FileReference(frList.fileList[i]);
elem.fr.load();
elem.fr.addEventListener(Event.COMPLETE,refreshThumb);
photos.addItem(elem);
private function refreshThumb(e:Event):void
photosList.invalidateList();
public function clearPhoto(data:Object):void
photos.removeItemAt(photos.getItemIndex(data));
photosList.invalidateList();
private function startUpload():void
photosProgressContainer.visible = true;
var request:URLRequest = new URLRequest();
request.url = "http://localhost/tempLoader-debug/upload.php";
var fr:FileReference = photos.getItemAt(0).fr;
fr.cancel();
fr.addEventListener(ProgressEvent.PROGRESS,uploadProgress);
fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadComplete);
fr.upload(request);
private function uploadProgress(e:ProgressEvent):void
photosProgress.setProgress(e.bytesLoaded,e.bytesTotal);
private function uploadComplete(e:DataEvent):void
photos.removeItemAt(0);
photosList.invalidateList();
if (photos.length > 0)
startUpload();
else
photosProgressContainer.visible = false;In my opinion this is the line that is causing you the warning:
<mx:Image source="{data.fr.data}" maxWidth="100" maxHeight="75"
horizontalAlign="center" verticalAlign="middle" />
That means that data should be a custom binable object and fr should be another
custom bindable object.
like
public class BindableData
public var fr:BindableData2;
public class BindableData2
public var data:String;
I am not sure though what you are trying to do though, but I assume you try top
load an image from your disk. This link will help you:
view source enabled...
http://www.everythingflex.com/flex3/flexcampItaly/
the blog post ...
http://blog.everythingflex.com/2009/09/08/flexcamp-presentation-filereference-load-part-1- of-3/
C
From: Astraport2012 <[email protected]>
To: Ursica Claudiu <[email protected]>
Sent: Sun, October 3, 2010 3:07:57 PM
Subject: Re: Warnings in FileReference - can not find the cause
I found the solution to the first part of the warning. Only need to modify the
object as ObjectProxy
public var elem:ObjectProxy = new ObjectProxy;
But with the second part is still a problem (warning: unable to bind to property
'name' on class 'flash.net::FileReference'
warning: unable to bind to property 'data' on class 'flash.net::FileReference').
I do not fully describe the problem in the first message. The main application
calls the component and passes it parameters. They cause errors.
It is this component photoThumb.mxml:
<?xml version="1.0" encoding="utf-8"?>
width="120" height="110"
backgroundColor="#FFFFFF" backgroundAlpha="0"
rollOver="{controls.visible=true;}" rollOut="{controls.visible=false;}">
<mx:Image source="@Embed('t1.png')" width="100%" height="100%" alpha="0"
horizontalAlign="center" verticalAlign="middle"/>
<mx:VBox width="100%" height="90" y="5" horizontalAlign="center" >
<mx:Image source="{data.fr.data}" maxWidth="100" maxHeight="75"
horizontalAlign="center" verticalAlign="middle" />
</mx:VBox>
<mx:Label text="{data.fr.name}" width="118" truncateToFit="false" bottom="0"
textAlign="center" />
<mx:VBox id="controls" visible="false" y="65" right="10" horizontalAlign="right"
>
<mx:Button label="X" click="parentDocument.clearPhoto(data)" fontSize="6"
width="30" height="15" />
</mx:VBox>
</mx:Canvas -
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. -
Windows recognizes iPod, but not iTunes or iPod updater, causes freezing
I'm having some issues with my 60GB iPod Photo. I tried to store my friend's music on my iPod as files. Upon uploading them to my own computer, some files caused freezing, requiring me to disconnect and reconnect the iPod. I finally gave up and deleted all the files stored on my iPod. All of a sudden, although Windows XP Pro recognized that an iPod was plugged in, it would no longer open iTunes automatically. When opening iTunes once the iPod was plugged in, it would cause iTunes to freeze.
I decided to restore my iPod. About halfway through, there was an error message saying my iPod could not be restored. All songs were deleted but my iPod was still not recognized. Now, the iPod updater does not recognize that in iPod is connected, even though Windows does. The updater freezes, inhibiting me from completing my restore. iTunes freezes as well when my iPod is plugged in. My iPod displays "update in progress - do not disconnect," but nothing happens. When my iPod is not connected to the computer, I can navigate through it normally, although it does need to be unfrozen when left unused for a couple of days. I cannot tell if it plays files because they were all removed during my unsuccessful restore.
I have tried reinstalling all my iPod related software and I have tried my iPod on more than one computer with different USB cables, but nothing works.
Help, please!This is exactly the same problem that I am having I have posted on 14th March on itunes forum. I wish you luck I wait with interest to see what someone says. My ipod was working like a dream until i downloaded the update
-
Both Chrome and Finder seemed to freeze, so I restarted the computer. When the restart finished, I was in recovery mode. How do I get back to my regular login screen?
It starts up and asks for a language. After English, it goes to the OS X Utilities screen. I have gone to disk utility and verified the disks. They both say they are okay. If I click repair, it comes back with an error saying "Live file system repair is not supported." I just want my computer back to normal! Please help! I am still in Mavericks if it matters.Do you have a backup? If so, in the Recovery Partition go to Disk Utility/Erase, select Mac OS Extended (Journaled), click Option GUID, and erase the disk. Then re-install the OS. Reboot and use Setup Assistant to recover your data.
-
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 GallantHi 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 -
Help please! [using Runtime.exec() to run find command in UNIX]
Hi guys! im trying to use exec() to run the UNIX find command
that my application uses. As you can see from my sample code, the find command finds all files ending with html in my home directory. Unfortunately when I run the program it doesn't give me an output, but when I run it on the shell in the same directory as this code is saved, it works perfectly fine.
Could someone please help me on this one. Many thanks! =)
import java.io.*;
import java.lang.String;
public class RunCommand {
public static void main(String[] args) {
try {
String[] command = {"find", "~/", "-name",
"*.html", "-print"};
String find_str;
Process find_proc = Runtime.getRuntime().exec(
command);
DataInputStream find_in = new DataInputStream(
find_proc.getInputStream());
try {
while ((find_str = find_in.readLine())
!= null) {
System.out.println(find_str);
} catch (IOException e) {
System.exit(0);
} catch (IOException e1) {
System.err.println(e1);
System.exit(1);
System.exit(0);
}I don't see anythi obvious. In both catch blocks, call printSckTrace on the exception yhou caught.
I think the real culprit is the ~ though.
~ is interpreted by some (most?) shells to men home dir. However, when you just exec a command, you don't have a shell to do that interpretation for you, so it's looking for a directory that's literally named ~.
Either exec a shell (read the man pages for the shell of your choice, but for zsh I think it's "/bin/zsh -c find ~ blah blah blah) or else just put the actual path to your home directory into the string you pass to exec. You can get that from System.getProperty("user.home").
Maybe you are looking for
-
How do I remove my apple id from my iPad and replace it with a new one
How do I remove my Apple ID and replaces it with a new one on my ipad
-
Adobe reader iOS app error "A system error was encountered."
Hello everyone, I am using Adobe Reader app for my iOS device. The app is throwing an error "A system error was encountered." whenever I highlight any word/sentences in the pdf file and the pdf file closes automatically and all the highlights/strike
-
I have just purchased the Creative Cloud for photographers package, on offer @ $9.99 (£8.78) at the moment. I am an existing CS6 Premium customer which as you know includes Photoshop CS6 extended. I have downloaded and installed the CC versions of P
-
Adhoc Query Issue - How to restrict /SAPQUERY/H2 access
Hi Experts, I have created two User Groups HR_1 (assigned to infosets for Time data) and HR_2 (assigned to Infosets for Payroll data). Also, I want to assign the HR_1 to a user Time_admin and HR_2 to Payroll_Admin, so that Payroll admin do not have a
-
Hello, I've been using Time Machine with a 300GB external hard drive. It filled up, so I bought a 750GB FireWire drive (Maxtor OneTouch 4 Plus). The disappointment was that I cannot format it in Disk Utility (Mac OS Extended (Journaled) format). Disk