-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·23 lines (15 loc) · 2.42 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
host_string=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]")
#host_string=(" [email protected]" " [email protected]" " [email protected]" " [email protected]" " [email protected]" " [email protected]" " [email protected]" " [email protected]")
#echo "kill -9 \$(pidof theta)"
for i in $( seq 0 `expr ${#host_string[@]} - 1 ` )
do
val=`expr \( $i % 4 \) `
idCount=` expr $i / 4 + 1 + 360000 `
tmux_name="$name:$i"
#tmux neww -a -n "$client" -t $name
if [ $val -eq 0 ]; then
scp -o "ProxyCommand=nc -X connect -x 172.17.144.1:7890 %h %p" ./output${idCount} ${host_string[i]}:/users/pzl97/docker-lab1/theta/output0
fi
done