namazu-users-en
[Top] [All Lists]

Re: .namazurc

To: <namazu-users-en@namazu.org>
Subject: Re: .namazurc
From: "Mark Hatton" <mhatton@online.ac.uk>
Date: Wed, 21 Aug 2002 08:09:16 +0100 (BST)
Reply-to: markh@online.ac.uk
Message-id: <47007.192.168.1.19.1029913756.squirrel@www.online.ac.uk>
Matt

Thanks for your feedback I now have \\sserver as you describe, but I still
need something to allow the the unix directory seperator / to be
translated into a windows seperator \ and %20 replaced to a single space,
for an undefined path size and any number of %20's.

Mark

Matt.Wilkie said:
Is is possible to use Namazu to create index on samba shared
files that can be accessed directly with windows machines.

Yes, using the "--replace" command line option. There may
be other methods as well.

Turning:-

/export/samba_docs/general/august%20accounts.xls

into

\\sserver\general\august accounts.xls

Try something like this:

   mknmz --output-dir .index \
   --exclude=.index \
   --replace='s#/export/samba_docs/#\\sserver\#'

the backslashes may need to be escaped with a backslash,
eg: \\\\server\\

cheers,


-- Matt Wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
--------------------------------------------


-- 
Mark Hatton
Systems Administrator
Community Online



<Prev in Thread] Current Thread [Next in Thread>