Problem with rewalking on a schedule...

Ned23
Posts: 7
Joined: Thu Aug 30, 2001 4:08 pm

Problem with rewalking on a schedule...

Post by Ned23 »

I'm sorry to keep asking so many questions, but after checking out what the NT task scheduler turned out this morning, I'm still having problems.

Here's what I have done so far:

I have wiped the database using:

gw -wipe -d-

Then I have created the following database using:

gw -fasp -d- mOptions.txt http://www.mysite.com

It creates the database fine and the Options.txt file only uses the x command to eliminate certain pages and folders from being indexed. This also works fine.

Then to test out and see if rewalk works, I do:

gw -d- -rewalk

This also seems to work fine as the .asp pages are indexed and those that are eliminated by the Options.txt file are no where to be found when searching the log file.

Then, I click on my batch file to execute it, and when it runs there is an error because it never overwrites the old database and the new database, _db, remains.

Inside the _db database's log file, there are the following two lines:

(first line)
2001/10/09 13:24:15 Begin(3376)
d:\websites\webinator\bin\gw
-dd:/websites/webinator\_db -create
(second line)
2001/10/09 13:24:15 End (3376)

This is all the lines in the log file so it's not even attempting to recall the old options like it usually does.

Also, here is the command that is in my batch file:

d:\websites\webinator\bin\gw -d- -rewalk

I'm at a loss for what is happening because rewalking works for what seems like all cases except for when I run my batch file, but this is the exact same batch file I had been using to reindex my site nightly and without any problems before I tried to index .asp pages and eliminate a few folders from being indexing.

Again any help would be greatly appreciated as it seems I'm stuck once again. Thanks in advance.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Problem with rewalking on a schedule...

Post by mark »

Where does your batch file reside? If it's in the database directory that will prevent renames from working.

Also, I assume you're cleaning out these _db databases between attempts.
Ned23
Posts: 7
Joined: Thu Aug 30, 2001 4:08 pm

Problem with rewalking on a schedule...

Post by Ned23 »

Yes, I'm cleaning out all the _db databases between attempts and my batch file resides in a completely different directory than does the webinator software.
Ned23
Posts: 7
Joined: Thu Aug 30, 2001 4:08 pm

Problem with rewalking on a schedule...

Post by Ned23 »

The only answer that I've come up with is to forget about rewalking and instead wipe and create the database every night. Do you think this is the way to go or should I figure out how to get rewalk to work instead?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Problem with rewalking on a schedule...

Post by mark »

And wipe and walk works from the batch file but -rewalk doesn't?
That's a viable solution. Just that the search will not be useful during the duration of the walk.

I really can't guess what the problem is if rewalk works from the command prompt but not in a batch file. Maybe some vague difference in process permissions in the 2 environments?