Thread: slocate
View Single Post
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#5
There is a simpler way.

create two scripts in /usr/bin called updatedb and locate

updatedb
Code:
find / -print > /medi/mmc2/locate.db
locate
Code:
grep "$1" /media/mmc2/locatedb | more
then use
Code:
crontab -e
to add the following line in roots crontab

Code:
0 4 * * * /usr/bin/updatedb
then to run just use
Code:
locate leafpad
Rick
 

The Following 2 Users Say Thank You to rcull For This Useful Post: