Running the script with AdvancedMiner on the command line
Requirements:
-
Java version 1.6 (minimum)
-
Java executable must be in the system PATH;
-
The command should be issued from the AdvancedMiner Server's installation directory
(AM_INSTALLATION_DIRECTORY_AM\Server)
Command to run: (this command should be enetered on as a single command line)
java -classpath "AM_INSTALLATION_DIRECTORY\Client\platform11\lib\*;AM_INSTALLATION_DIRECTORY\Client\gornik2\modules\*"
biz.sc.gornik.script.console.CommandLineScriptExecutor console-header.gy "PATH_TO_SCRIPT" "PATH_TO_LOG"
Where:
- AM_INSTALATION_DIRECTORY - AdvancedMiner installation directory,
eg. C:\Program Files\AdvancedMiner
- PATH_TO_SCRIPT - full path to the script file,
eg. C:\Users\jan\Documents\AdvancedMinerProjects\BasicProject\skrypt2.py
- PATH_TO_LOG - full path to the log file (it will be created or overwritten),
eg. C:\Users\jan\Documents\Logi\log_skryptu.log
Note that on Windows the directory paths after the -classpath are separated
by semicolon, while on posix operating systems they are separated by a colon.
The script's output (print... statements) is sent to standard output.