LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 11-02-2007, 06:28 PM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 680

Rep: Reputation: Disabled
[OpenBSD 4.1] run locate.updatedb after login


I log in via xdm as a normal user and want to run /usr/libexec/locate.updatedb only once in the background each time I log in. Is there any way to do this?

I tried to put it in /etc/rc.local - but it's painfully slow every time I boot the system.

Any help would be much appreciated. Thanks.
 
Old 11-03-2007, 12:17 AM   #2
ocicat
Member
 
Registered: May 2007
Posts: 193

Rep: Reputation: 43
Quote:
Originally Posted by noir911 View Post
I tried to put it in /etc/rc.local - but it's painfully slow every time I boot the system.
...& if you run it in the background?
 
Old 11-03-2007, 10:09 AM   #3
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 15
You'd definitely be better off putting that in cron... is there any compelling reason that you can't?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locate & updatedb Wicus001 Linux - Software 2 09-27-2007 05:39 AM
locate and updatedb commands are not available guy_ripper Linux - Software 8 10-28-2006 02:39 AM
updatedb / locate doesn't appear to work allelopath Linux - Software 5 08-28-2005 10:55 PM
Frontend for Updatedb and Locate? tbeehler Linux - Software 4 02-13-2004 10:07 AM
updatedb/locate difficulty UB_KMA Linux - General 4 12-29-2002 06:28 PM


All times are GMT -5. The time now is 09:13 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration