@echo off
|
|
@REM change to the filepath
|
cd %~dp0
|
@REM add vitrual env python to the path
|
path "%~dp0/../.env/Scripts/";%path%
|
|
cd ..
|
echo change to path: %cd%
|
|
set MQhost=172.17.17.206
|
set MQuser=chai
|
set MQpassword=password123
|
set QUEUEname=aerial_rpc
|
set DEVICEname=pod1
|
set SERVERhost=http://172.17.17.206/api
|
set MICROWAVEhost=192.168.2.65
|
set LOGfile=Client.log
|
|
@REM Launch the Client
|
echo the log file will be saved in the [%LOGfile%] file
|
echo Client.py is running ...
|
@REM -------- Usage: Client.py [MQhost] [MQuser] [MQpassword] [QUEUEname] [DEVICEname] [SERVERhost] [MICROWAVEhost]
|
python ./src/Client.py %MQhost% %MQuser% %MQpassword% %QUEUEname% %DEVICEname% %SERVERhost% %MICROWAVEhost% >> %LOGfile%
|
echo Client.py has been terminited.
|
pause
|