Using a Perl Script


If you want to automate the rebuilding of your meta-collections into new collections, you can use a Perl script to perform the necessary functions.

Warning! The Perl script provided with Verity Spider V3.6 is for demonstration purposes only. It is understood that the use of this script, which will require editing on your part, is undertaken at your own risk and will not be supported by Verity technical support.

How to Get Perl

You may obtain the latest distribution of Perl at http://www.perl.org. Follow the instructions provided for your platform.

Using the Sample Perl Script

The sample Perl script, meta2uni.pl, is installed to:

installdir/platform/admin/meta2uni.pl

where installdir is the full path to the directory in which you installed Information Server, and platform is dependent on your operating system. For a complete list of supported operating systems and platforms, see the Information Server Product Notes.

The syntax for meta2uni.pl is:

meta2uni.pl -style [unistyledir] -metacoll [metacoll] -unicoll [unicoll] [options]

meta2uni.pl Arguments

Option
Description
-style unistyledir
Required. Specifies the full path to the style files directory. The default location is /installdir/common/style.
-metacoll metacoll
Required. Specifies the path to the meta-collection you are upgrading.
-unicoll unicoll
Required. Specifies the name for the new collection.

Warning! The new collection name cannot contain the .clm extension.

-proxy proxyhost
Optional. Specifies host and port for proxy server.

NOTE: If the proxy server in your enterprise requires authentication, then you will have to use the directly to reindex your collections.

-timeout number
Optional. Specifies the time period, in seconds, that the should wait before timing out on a network connection and on accessing data. The data access value is automatically twice the value you specify for the network connection timeout.

The default value for the network connection timeout is 30 seconds, and therefore the value for the data access timeout is 60 seconds .

-auth file
Optional. Specifies an authorization file to support authentication for secure paths.

For more information, see
"Authenticating Secure Paths" in Chapter 3 of this guide.
-useragent string
Optional. Specifies an identification string. The default value is: "Verity-URL-Gateway/1.0"

Editing meta2uni.pl

To make meta2uni.pl work on your platform, follow these steps.

1. Replace the line below with the path to your Perl executable.

#!/usr/vbin/perl

NOTE: This is only necessary for UNIX, as the .pl extension is handled automatically by Perl on Windows NT.

2. Replace the full path to the Information Server /bin directory in the line below. For <platform>, choose the appropriate value. For a complete list of supported operating systems and platforms, see the Information Server Product Notes.

$VDKBINDIR="$ENV{'HOME'}/verity/<platform>/bin";





Copyright © 1998, Verity, Inc. All rights reserved.