Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locate (was Re: PDF writer)



At 7:38 AM -0400 7/31/02, Robert C. Jacobson wrote:
At 2:34 AM -0400 7/31/02, Michael G. Schabert wrote:
I had it working last night, but my output file was going someplace only the server knows. After many failed attempts to find the output file I went home.

Open Terminal:
sudo sh /etc/weekly

Wait until that returns you to a shell prompt. Then "locate filename". Capitalization matters.

HTH
Mike
--
Bikers don't *DO* taglines.

"locate" might not work if the file is in a directory that the user "nobody" can't access.

There aren't too many (stock) places that can't be "locate"d.

You can either change the /etc/weekly script to run update.locatedb as a different, more privileged user, or use "find":

find / -name filename

as with locate, case matters, unless you use a regexp. e.g:

find / -name "[Ff][Ii][Ll][Ee][Nn][Aa][Mm][Ee]"

will find "filename", "Filename", "FiLENaME", etc. Similarly for locate.

Yeah, I know find is the ost comprehensive tool for the job...I just hate the waiting for it. It takes about as long as the sh /etc/weekly...but if you're doing 2 searches (or searching for stuff older than Friday) you'll save the time immediately by using locate.

Or, (shhh) use Sherlock to find it! But that's too easy. ;-)

Unfortunately, Sherlock doesn't search anywhere near as many places as locate does. But at least it's case-insensitive. And I kinda assumed that Sherlock was what was used when he said "After many failed attempts to find the output file".

Mike
--
Bikers don't *DO* taglines.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: PDF writer (From: Bruce Toback <email@hidden>)
 >Re: PDF writer (From: "Heath Henderson" <email@hidden>)
 >Re: PDF writer (From: "Michael G. Schabert" <email@hidden>)
 >locate (was Re: PDF writer) (From: "Robert C. Jacobson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.