![]() |
2008-02-09
, 10:39
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#12
|
![]() |
2008-02-09
, 16:51
|
Posts: 145 |
Thanked: 32 times |
Joined on Dec 2007
|
#13
|
![]() |
2008-02-09
, 17:00
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#14
|
![]() |
2008-02-10
, 07:26
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#16
|
![]() |
2008-02-10
, 08:17
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#17
|
The Following User Says Thank You to rcull For This Useful Post: | ||
![]() |
2008-02-11
, 16:30
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#18
|
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.
![]() |
2008-02-12
, 11:10
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#19
|
mlocate is a new implementation of locate, a tool to find files files anywhere in the filesystem based on their name, using a fixed pattern or a regular expression. Unlike other tools like find(1), locate uses a previously created database to perform the search, allowing queries to execute much faster. This database is updated periodically from cron.
Several implementations of locate exist: the original implementation from GNU's findutils, slocate, and mlocate. The advantages of mlocate are:
* it indexes all the filesystem, but results of a search will only
include files that the user running locate has access to. It does
this by updating the database as root, but making it unreadable for
normal users, who can only access it via the locate binary. slocate
does this as well, but not the original locate.
* instead of re-reading all the contents of all directories each time
the database is updated, mlocate keeps timestamp information in its
database and can know if the contents of a directory changed without
reading them again. This makes updates much faster and less demanding
on the hard drive. This feature is only found in mlocate.
locate .mp3
locate -r "libosso[^-].*postrm"
![]() |
2009-06-23
, 16:00
|
Posts: 5 |
Thanked: 0 times |
Joined on Feb 2009
|
#20
|
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
Regards
Rick