-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·35 lines (22 loc) · 909 Bytes
/
start.sh
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
28
29
30
31
32
33
34
35
#!/bin/sh
APP_HOME=$(dirname $(readlink -f $0))
cd $APP_HOME
python --version
# virtualenv .venv
[ -e ${APP_HOME}/.venv/bin/activate ] && source .venv/bin/activate
[ -e ${APP_HOME}/.venv/Scripts/activate ] && source .venv/Scripts/activate
python --version
echo $?
pip3 install -r requirements.txt
sleep 1
# python src/on_tick_server_binance.py &
nohup python src/on_tick_server_exness.py &
nohup python src/on_trade_server_exness.py &
nohup python src/main.py &
sleep 5
ps -ef | grep python | grep -v grep
ps -ef | grep python | grep -v grep | grep on_tick_server_binance | awk '{print $2}'
ps -ef | grep python | grep -v grep | grep on_tick_server_exness | awk '{print $2}'
ps -ef | grep python | grep -v grep | grep on_trade_server_exness | awk '{print $2}'
ps -ef | grep python | grep -v grep | grep main | awk '{print $2}'
netstat -na | grep TCP | grep LIST | egrep "5300|8765|18765"