Showing
1 changed file
with
20 additions
and
0 deletions
gor/copyGorLogAll.sh
0 → 100755
1 | +#!/bin/bash | ||
2 | + | ||
3 | +IPS=( | ||
4 | +192.168.104.34 | ||
5 | +192.168.104.35 | ||
6 | +192.168.104.57 | ||
7 | +192.168.104.58 | ||
8 | +192.168.104.59 | ||
9 | +192.168.104.60 | ||
10 | +) | ||
11 | + | ||
12 | +GOR_PATH=/opt/gorLog | ||
13 | + | ||
14 | +for ip in ${IPS[@]} | ||
15 | +do | ||
16 | + echo "scp $GOR_LOG_PATH ${ip}:$GOR_PATH" | ||
17 | + scp -r $GOR_PATH ${ip}:$GOR_PATH | ||
18 | +done | ||
19 | +#ssh $IP "mkdir -p ${GOR_PATH}" | ||
20 | +#\scp $GOR_LOG_PATH ${IP}:$GOR_PATH |
-
Please register or login to post a comment