PRIMER 22.1

Running a Javascript in "Batch" Mode

Running a JavaScript in "Batch" Mode

All the above assumes that JavaScripts will be run interactively from the user interface, however it is also possible to run a script in "batch" mode using the command line interface. The relevant command-line commands are:

/SCRIPT READ <script> Read, compile and execute <script>

To run a JavaScript from batch these commands need to be placed in a command file and run using the command line " -cf= command filename " option. For example the command file might be:

... some other commands
/SCRIPT READ my_script.js
...some further commands

And the command line required to run PRIMER might be something like:

$OASYS/primer 22_x64.exe -d=default -cf= command_file -exit analysis_name

Obviously multiple script invocations may be placed in a command file. For more information see:

Using command files Describes command files, and explains how to create and use them
Command line arguments Describes the various command line arguments, and how to use them