|
|
|
Forgo the alias and read the man page.
If you set the cron job to make your own version of the locate database, you don't need to use an alias to access it with a different command. In the man page for locate the use of the environment variable
LOCATE_PATH is documented. Assuming that you have placed your version of the locate database in $HOME/Library/llocate.database, then modify your environment in one of your standard dot files (.bashrc is one):
export LOCATE_PATH=$HOME/Library/llocate.database:Note the trailing colon--this will allow locate to use your custom database for your own files and fall back to the system locate database. If you have reasonably restrictive permissions on your machine, then this will allow you to use the power of locate to search both your own filespace as well as what you should be able to see on the system as a regular user. |
SearchFrom our Sponsor...Latest Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.09 seconds |
|