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:
| /JAVASCRIPT - | +- | COMPILE | Compiles and checks the script, but does not run it. |
| +- | EXECUTE | (Re)compiles and runs the script | |
| +- | MEMORY <nnn> | Resets the Garbage Collection threshold to <nnn> MBytes |
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
/JAVA EXEC my_script.js
...some further commands
And the command line required to run D3PLOT might be something like:
$OASYS/d3plot93.exe -d=default -cf= command_file -exit analysis_name
Obviously multiple script invocations may be placed in a command file. For more information see:
Command and Session files Describes command files, and explains how to create and use them Valid D3PLOT command line arguments Describes the various command line arguments, and how to use them