command line console and batch scripts [since
The OBEROn OOQL console is a text-only interface for
interacting with the platform by typing commands to perform tasks.
The command-line interpreter receives, analyses, and executes the
requested OOQL command of file.
To start the console you can run the ooql.bat (or ooql.sh)
script; this script loads the enviroment parameters used to access
the OBEROn DB from the config script and the etc/oberon.ini file like
the other graphical clients.
ooql [-silent] [-verbose] [-conf confFile] [-script ooqlFile] [-command ooqlCommand]
[-user userName] [-password userPwd]
||suppress all info on startup
||show more information on startup
||load a specific oberon.ini file in place of the default ./etc/oberon.ini
||execute an ooql script file and exit
||execute an ooql command and exit
||login with a specific user
||the user password
If you specify the OBEROn user and password into the configuration
script, the console will be immediately ready to receive commands;
otherwise you have to open the user framework by using the following
framework open "<User_Name>"
password "<User_Password>" ;
fw open "<User_Name>" password "<User_Password>"
Note: you must write each command on the same
line and commands must end with the ";" symbol as usual.
To exit from the textual interface, type the "quit"
You can directly run a command by using
the ooql script with the "-command" option followed by the text of the OOQL command ( usually the "program
execute" command ).
The console automatically quit after the
command has been executed.
Moreover, it is possible to execute a sequence of commands written in a script file: you have only to prepare the text file with all commands (end with ";") you want to execute in the given order and launch the ooql script with the "-script" option followed by the file path+name.
The console automatically quit after all the
commands have been executed.
Note: the execution will stop on the first error