wilmacmd - Command Line Interface

The wilmacmd program is most commonly used to perform automated builds
and updates of indexes. It is a console program that does not open any
windows and with the appropriate command line parameters,
wilmacmd can perform these operations without any user input, which makes it
appropriate for use with scheduling programs that run it unattended. It can
also be used to issue commands directly to the Wilma search engine, either
interactively or by reading from a script file.

The Wilma search engine performs all of its tasks in response to a commands
given using a simple
command language. The graphical desktop program
translates user mouse clicks, menu selections and dialog input into
these commands, so normally the user is not concerned with them, although
they can be used directly on either the console tab of the desktop program
or interactively with wilmacmd.

Command Line Arguments

Command line arguments are processed from left to right. The commands
operate on the currently open file, so an open command will have to
precede build or update commands. For example:

wilmacmd -o tom -b -o dick -u

would first load the index named "tom" and build it and then load
the index named "dick" and update it. Note that the -o terms
are not actually necessary for wilmacmd assumes that an argument that
doesn't start with a - and isn't a required part of the previous
argument, is a request to load that index.

By default wilmacmd waits in interactive mode for additional user
input after completing the actions dictated by the arguments.
However when a build -b, update -u or read r
command is encountered, a flag is switched telling wilmacmd to
just exit when done with all the arguments. The -i
argument can be used to flip this flag back as does opening
another index.

Command

Description

-o

Load the index whose name is the next argument. The
-o term is optional if it would be the first argument.
Thus "wilmacmd test -b" would open index test, build it and
then terminate.

-b

Build the index that is currently loaded.

Flips a flag telling wilmacmd to shut down once all
arguments have been processed.

-u

Update the index that is currently loaded.

Flips a flag telling wilmacmd to shut down once all
arguments have been processed.

-r

Read and execute the script file whose name is the next argument.
The file must contain legal command lines from Wilma's
command language.

Flips a flag telling wilmacmd to shut down once all
arguments have been processed.

-i

Restores wilmacmd to the state where it will continue
with interactive user input once done processing all
the command line arguments.

The interactive mode of wilmacmd can be exited with either the "quit"
command or by and end of file (Ctrl D on Mac and Linux, Ctrl Z on
Windows).