copyGorLog.sh 250 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/bash if [[ ! $1 ]];then echo "未输入日志全路径" exit 1 fi if [[ ! $2 ]];then echo "未输入压力机IP" exit 1 fi GOR_LOG_PATH=$1 IP=$2 GOR_PATH=/opt/gorLog ssh $IP "mkdir -p ${GOR_PATH}" \scp $GOR_LOG_PATH ${IP}:$GOR_PATH