![]() |
Re: slocate
Benson
1. If this was one of the UNIX servers I have managed for the last 15 years, yes you would be right but this is a personal tablet. I don't know about you, but I, haven't got the memory of a goldfish and tend to know what I've done from one day to the next so I'm pretty unlikely to use it in another script. 2. Both the script name and the '|more' are obviously optional. 3. I wonder which is the most '******ed' replacing an accurate (and available) time based tool (cron) with a script using 'sleep' or using accurate (and available) tools find and grep in a way they were meant to be used to replace something currently unavailable! Lastly, I pride myself on having manners something you are obviously Not Familiar with. Albright A useful header for crontab files Code:
############################################################################# Regards Rick |
Re: slocate
Thanks for the script rcull, I used it fine. I have a cron service running, and I chmodded the scripts and edited crontab with leafpad.
Although 2 unintended mistakes in scripts. Meia should be media and locatedb should be locate.db (or the other way around depending on which script you edit first |
Re: slocate
I must be pretty dense, but I can't find any
crontab command on my n810 and there doesn't seem to be any cron service available. (I *know* what cron is and the syntax - I just don't know how to install the cron service on my n810). |
Re: slocate
Search for cron on this forum, I found a attachment that installed cron (it doesn't come with the ITT by default).
BTW: Is there any vi for dummies? The only command I know is :wq :\ I had to use some own tricks & leafpad to edit cronttab. |
Re: slocate
thanks Faheem - found it
very basic vi: i - insert mode esc - exit insert mode ZZ - save & exit vi editing more less works as expected |
Re: slocate
Thanks for that :) vi was killing me lol.
|
Re: slocate
qwerty12
A very good vi reference card (pdf) http://limestone.truman.edu/~dbindner/mirror/vi-ref.pdf A nice tutorial http://http://www.eng.hawaii.edu/Tutor/vi.html regards Rick |
Re: slocate
Quote:
Quote:
Quote:
Quote:
|
Re: slocate
We now have
not grep ;p not locate not slocate but the great secure and fast Mlocate :D Quote:
Either you update the database : * Through cron (a daily task is installed) or * Manually by running updatedb (as root) mlocate will remap your "/usr/bin/locate" and "/usr/bin/updatedb" to point to mlocate binaries. It creates a new user/group for security reasons. You can do normal searches: PHP Code:
PHP Code:
|
Re: slocate
Wonderful tool. Really had it missing.
It was hard to find because findutils points to busybox. |
All times are GMT. The time now is 03:48. |
vBulletin® Version 3.8.8