Re: Search tool

2003-02-28 Thread Robin Doer
> I am trying to write a program in c to be able to search a file > for any pattern which will be given by the user at > runtime.Basically a search tool. > Could someone suggest a good way of doing this.I've heard of lex > and yacc and also awk.Which one is better or is ther

Re: gnome-search-tool database updating

2003-02-12 Thread Peter
Yes it seems the updatedb is not done automatically in RH up to 7.3. Therefore, I put in my su (root) crontab (crontab -e) the following lines: 00 13 * * * updatedb -e /mnt/dos,/mnt/window 25 17 * * 1 mount /mnt/window; updatedb -U /mnt/window -e /mnt/dos,/,/usr,/usr/local,/home -o /home/peter/

Re: gnome-search-tool database updating

2003-02-12 Thread Haines Brown
Sorry, Ray, I misunderstood you on two counts. > First, updatedb *is* the command to update the locate database. I > already told you this, so asking *me* again what command you are > looking for is a pointless exercise. > Not having slocate on my systems, I have no way to check this > ... but wh

Re: gnome-search-tool database updating

2003-02-12 Thread Ray Olszewski
Haines -- First, updatedb *is* the command to update the locate database. I already told you this, so asking *me* again what command you are looking for is a pointless exercise. Either you believe I know what I'm saying or you don't. (I did qualify this by saying I assumed that slocate used the

Re: gnome-search-tool database updating

2003-02-12 Thread Haines Brown
Re. my effort to update the slocate database and figure out why that's not happening automatically. > My setup here looks quite different, but I think that is just > because Debian uses /etc/updatedb.conf, which contains a lot of the > stuff that your setup puts in command-line switches. Red Hat

Re: gnome-search-tool database updating

2003-02-11 Thread Ray Olszewski
At 02:40 PM 2/11/03 -0500, Haines Brown wrote: > If "slocate" is similar to "locate" in its operation, updating the database > (using its analog to "updatedb") should be scheduled as a cron job Indeed, cron.daily does have: renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb -f "nfs,smbfs,ncpfs,

Re: gnome-search-tool database updating

2003-02-11 Thread Haines Brown
> If "slocate" is similar to "locate" in its operation, updating the database > (using its analog to "updatedb") should be scheduled as a cron job Indeed, cron.daily does have: renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/ne

Re: gnome-search-tool database updating

2003-02-11 Thread Ray Olszewski
At 10:05 AM 2/11/03 -0500, Haines Brown wrote: [Note: My question doubles as a test message. I had trouble with aliasing, and so please make sure your reply to this message does not go to an obviously invalid address. Thank you.] The gnome-search-tool (RedHat 8.0) returns the warning: "wa

gnome-search-tool database updating

2003-02-11 Thread Haines Brown
[Note: My question doubles as a test message. I had trouble with aliasing, and so please make sure your reply to this message does not go to an obviously invalid address. Thank you.] The gnome-search-tool (RedHat 8.0) returns the warning: "warning: locate: warning: database /var/lib/sloca