@echo off
|
|
@REM change to the filepath
|
cd %~dp0
|
cd ..
|
|
set aerialpython=%cd%/../aerial_deploy/python.exe
|
set envsetting=%cd%/env/SettingEnv.bat
|
|
@REM Setting the env
|
if not exist %aerialpython% (
|
call %envsetting%
|
)
|
cd %~dp0
|
cd ..
|
|
echo change to path: %cd%
|
|
set MQhost=localhost
|
set MQuser=chai
|
set MQpassword=password123
|
set QUEUEname=aerial_rpc
|
set WEBport=5000
|
set SAVEfolder=./ImagesTEST
|
set LOGfile=ServerTEST.log
|
|
@REM Launch the Server
|
@REM -------- Usage: Server.py [MQhost] [MQuser] [MQpassword] [QUEUEname] [WEBport] [SAVEfolder]")
|
echo the log file will be saved in the [%LOGfile%] file
|
echo Server.py is running ...
|
@REM -------- Usage: Server.py [MQhost] [MQuser] [MQpassword] [QUEUEname] [WEBport] [SAVEfolder]")
|
%aerialpython% ./src/Server.py %MQhost% %MQuser% %MQpassword% %QUEUEname% %WEBport% %SAVEfolder% >> %LOGfile%
|
echo Server.py has been terminited.
|
pause
|