Yes, I'm running htdig on OS X. The cron job ran successfully last night,
but I have another question...

Rundig executes the htdig command with the -i switch causing a new database
to be created each time. This isn't a problem except I'm displaying the
index date in my search results. So, each result shows the date of the last
indexing - today at 2:00am.

Is it okay duplicate and modify the rundig script so that the htdig command
is executed without the -i switch? That way, I could call the modified
rundig script from my cron job.



On 9/3/04 7:42 AM, "Jennifer Zelazny" <[EMAIL PROTECTED]> wrote:

> Looks like you will have to run the command as root since root owns the
> files.
> Are you on OS X?  (I noticed the /Library)
> 
> I am running htdig on OS X and my permissions look like this:
> 
> -rw-r-r-- admin staff db.docdb
> -rw-r-r-- admin staff db.docdb
> -rw-r-r-- admin staff db.docs.index
> -rw-r-r-- admin staff db.wordlist
> -rw-r-r-- admin staff db.words.db
> 
> I run rundig as a cron job for user admin.   (root does not have to own
> these files)
> 
> You can either set up a cron job and run rundig as root, because you
> know it works, or change permissions and run it as your local user.
> 
> Let me know if you get it to work/have more questions!
> Jen
> 
> 
> On Sep 2, 2004, at 4:01 PM, Clint Davis wrote:
> 
>> I removed the trailing slash in my conf file, and I'm still getting
>> errors.
>> The errors just have one slash now:
>> 
>> htdig: Unable to open/create document database
>> '/Library/Tenon/Htdig/db/www.realtree.com/db.docdb'
>> 
>> htmerge: Unable to create temporary word file
>> '/Library/Tenon/Htdig/db/www.realtree.com/db.wordlist.new'
>> 
>> 
>> I can run the command as root from the command line with no problems.
>> Here's
>> what my /db/ directory looks like:
>> 
>> -rw-r--r--  1 root  www  13142016 Sep  2 07:05 db.docdb
>> -rw-r--r--  1 root  www    335872 Sep  2 07:05 db.docs.index
>> -rw-r--r--  1 www   www  28289464 Sep  2 07:05 db.wordlist
>> -rw-r--r--  1 root  www  23995392 Sep  2 07:05 db.words.db
>> 
>> 
>> 
>> On 9/2/04 3:35 PM, "Jennifer Zelazny" <[EMAIL PROTECTED]> wrote:
>> 
>>> Yes, that should do it!
>>> Good luck.
>>> Jen
>>> 
>>> 
>>> On Sep 2, 2004, at 3:22 PM, Clint Davis wrote:
>>> 
>>>> database_dir:   /Library/Tenon/Htdig/db/www.realtree.com/
>>>> 
>>>> Should I remove the trailing slash?
>>>> 
>>>> 
>>>> On 9/2/04 8:04 AM, "Jennifer Zelazny" <[EMAIL PROTECTED]> wrote:
>>>> 
>>>>> What does your conf file look like when you define your db?
>>>>> Ex. mine is: database_dir:
>>>>> /Volumes/www/htdig/db/centraloffice
>>>>> 
>>>>> I would think that line is probably giving you issues.
>>>>> Jen
>>>>> 
>>>>> 
>>>>> On Sep 2, 2004, at 7:11 AM, Clint Davis wrote:
>>>>> 
>>>>>> When running the HtDig cron job as the root user, I get the
>>>>>> following
>>>>>> errors:
>>>>>> 
>>>>>> htdig: Unable to open/create document database
>>>>>> '/Library/Tenon/Htdig/db/www.realtree.com//db.docdb'
>>>>>> 
>>>>>> htmerge: Unable to create temporary word file
>>>>>> '/Library/Tenon/Htdig/db/www.realtree.com//db.wordlist.new'
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> There seems to be a double slash right before the file name. Is
>>>>>> this
>>>>>> the
>>>>>> problem?
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> The cron job looks like this:
>>>>>> 0      2       *       *       1,2,3,4,5,6,7   root
>>>>>> /Library/Tenon/Htdig/bin/rundig -c
>>>>>> /Library/Tenon/Htdig/conf/www.realtree.com.conf




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to