Source Files and the Autoexec.nos File
Over time, the autoexec.nos file can become a
huge rambling assemblage of comments and commands, nearly incomprehensible
to the sysop who so carefully put it together when first getting
JNOS up and running. Somehow, this file just seems to gracefully decay as
more system tests are performed or more new functionality added.
What can you do to fight these "forces of disorder?" The answer is to use
smaller dedicated files that are "sourced into" the autoexec.nos runtime
configuration file.
The advantage is that you can "modularize" your data commands, thus
leaving a much smaller and more readable exec. This config file now
becomes a top level file with the "call outs" to the source files, also
known as scripts, making up the lower
levels. Each file can be dedicated to a particuar task, or to a
particular piece of hardware. (A further benefit is the ease with which
you can clone or change these files in a text editor or the stream
editor, i.e., sed, or "enable/disable" an entire source file by commenting
the source command "in" or "out.")
The only disadvantage that I have seen is that it can sometimes be harder
to find an item located inside a group of files. You have to name your
source files descriptively, or know how to use grep. However, on a Linux
system, this should not be a problem.