-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path启动.sh
executable file
·35 lines (28 loc) · 1.16 KB
/
启动.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
#export http_proxy=http://127.0.0.1:3128
#export https_proxy=http://127.0.0.1:3128
export no_proxy=localhost,127.0.0.1
TMUX_SESSION_NAME=sese_engine
which tmux &> /dev/null
if [[ $? -eq 0 ]]
then
echo "找到了 tmux,可以把屏幕分成四块!"
tmux new -t $TMUX_SESSION_NAME -d
tmux split-window -t $TMUX_SESSION_NAME -h
tmux split-window -t $TMUX_SESSION_NAME -v
tmux select-pane -t $TMUX_SESSION_NAME -L
tmux split-window -t $TMUX_SESSION_NAME -v
tmux select-pane -U -t $TMUX_SESSION_NAME
tmux send-keys -t $TMUX_SESSION_NAME.0 "python 人服务器.py" Enter
tmux send-keys -t $TMUX_SESSION_NAME.1 "while true; do python 上网.py; done" Enter
tmux send-keys -t $TMUX_SESSION_NAME.2 "python 回.py" Enter
tmux send-keys -t $TMUX_SESSION_NAME.3 "while true; do python 收获服务器.py; done" Enter
tmux attach -t $TMUX_SESSION_NAME
exit
fi
echo "找不到 tmux 啦,我们用丑一点的界面吧!"
python 人服务器.py &
while true; do python 上网.py; sleep 1; echo '启动这个脚本的贝壳的子皮带是: '$BASHPID; done &
python 回.py &
while true; do python 收获服务器.py; done
exit