Some operating systems allow additional arguments to be specified to a program when it begins execution. When the CLIPS executable is started under such an operating system, CLIPS can be made to automatically execute a series of commands read directly from a file. The commandline syntax for starting CLIPS and automatically reading commands from a file is as follows:
Syntax
clips -f <filename>
The f is required, and <filename> is a file that
contains CLIPS commands. If the exit command
is included in the file, CLIPS will halt and the user is returned
to the operating system after executing the commands in the file.
If an exit command is not in the file, CLIPS will enter
in its interactive state after executing the commands in the file.
Commands in the file should be entered exactly as they would be
interactively (i.e. opening and closing parentheses must be included
and a carriage return must be at the end of the command). The
f command line option is equivalent to interactively entering
a batch command as the first command to the
CLIPS prompt.