LOAD SCRIPT (from 2.2.18)
Loads a sql script from the given path and executes it.
LOAD SCRIPT <script path>
Load a script from an absolute path:
LOAD SCRIPT /path/to/scripts/data.osql
Launch the console in batch mode and load script to a remote database:
$ORIENTDB_HOME/bin/console.sh "CONNECT REMOTE:localhost/demo;LOAD SCRIPT /path/to/scripts/data.osql"
For more information on other commands, see Console Commands.