[Previous] [Next] [Up] [Top] [Search] [Index]
Appendix A.2: Wndex command line options
- -a -- Serveall (mnemonic "all")
-
Using the -a option is equivalent to putting the directive
"Attributes=serveall" at the
beginning of the index file (or files) being processed, with
one important exception. If wndex is used with this
option in a directory which contains no index file, it will
behave as if there were an index file containing only the
line "Attributes=serveall". This allows the creation of an
index.cache file permitting access to all files in a directory
without first creating an index file. This can be used with
the - r option to grant access to a
directory hierarchy without the need to create an index file
in each directory.
- -c file_name -- Use "file_name" instead of "index.cache".
-
Using the "-c file_name" option causes wndex to write its output
to the file "file_name" rather than the default "index.cache".
- -d dir_name -- Proces directory "dir_name"
-
When wndex is run with this option it will process the directory
dir_name rather than the current directory. It will use the
index file in dir_name and write the file dir_name/index.cache.
- -i file_name -- Use "file_name" instead
of "index".
-
Using the "-i file_name" option causes wndex to read its input
from the file "file_name" rather than the default "index".
- -q -- Use quiet mode.
-
Using the "-q" option causes wndex to suppress any warning
messages (except fatal errors) sent to stderr as well as other
informational messages.
- -r -- Recursively process subdirectories
-
Using the "-r" option causes wndex to recursively descend
through some subdirectories and process them as well.
By default it processes only those subdirectories listed in
the "Subdirs=" directive.
However, this can be changed to be either all subdirectories
or all subdirectories containing an "index file" by use of
the -s option described below.
If the -r and -a are used together then
the default is to use all subdirectories.
- -s all | index -- Set the value of the Subdirs directive
automatically.
-
Using the "-s index" option with an index file containing no
"Subdirs=" directive is
equivalent having such a directive whose value is a list of
all subdirectories which contain an index file. Using the
"-s all" option with an index file containing no Subdirs directive
is equivalent to having such a directive whose value is a list of
all subdirectories of the directory being processed.
If the -r and -a are
used together then "-s all" is automatically assumed. This
can be overridden by using a real Subdirs directive or using
"-s index".
- -v -- Use verbose mode.
-
Using the "-v" option causes wndex to be extra verbose.
- -V -- Print version
-
Using the "-V" option causes wndex to print its version and exit.
- -x -- Use standard I/O
-
Using the "-x" option causes wndex to read from standard input
instead of the file "index" and write to standard output rather
than the file "index.cache."
John Franks <john@math.nwu.edu>
[Previous] [Next] [Up] [Top] [Search] [Index]