-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_setup.cmd
executable file
·27 lines (21 loc) · 1.41 KB
/
run_setup.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
rem PATH_TO_MONICA_BIN_DIR=C:\MONICA\monica_win64_3.6.16\bin
set PATH_TO_MONICA_BIN_DIR=C:\Users\palka\GitHub\monica\_cmake_win64\Release
set PATH_TO_PYTHON=c:\Users\palka\AppData\Local\anaconda3\python.exe
set MONICA_PARAMETERS=%cd%\data\monica-parameters
echo "MONICA_PARAMETERS=%MONICA_PARAMETERS%"
START "ZMQ_IN_PROXY" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-proxy -pps -f 6666 -b 6677 &
START "ZMQ_OUT_PROXY" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-proxy -pps -f 7788 -b 7777 &
START "ZMQ_MONICA_1" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-server -ci -i tcp://localhost:6677 -co -o tcp://localhost:7788
START "ZMQ_MONICA_2" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-server -ci -i tcp://localhost:6677 -co -o tcp://localhost:7788
START "ZMQ_MONICA_3" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-server -ci -i tcp://localhost:6677 -co -o tcp://localhost:7788
START "ZMQ_MONICA_4" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-server -ci -i tcp://localhost:6677 -co -o tcp://localhost:7788
START "ZMQ_MONICA_5" /MIN %PATH_TO_MONICA_BIN_DIR%\monica-zmq-server -ci -i tcp://localhost:6677 -co -o tcp://localhost:7788
echo "run producer"
START "ZMQ_PRODUCER" /MIN %PATH_TO_PYTHON% run-producer.py
echo "run consumer"
%PATH_TO_PYTHON% run-consumer.py
echo "killing proxies"
taskkill /FI "WindowTitle eq ZMQ_IN_PROXY*" /T /F
taskkill /FI "WindowTitle eq ZMQ_OUT_PROXY*" /T /F
echo "killing MONICAs
taskkill /FI "WindowTitle eq ZMQ_MONICA_*" /T /F