github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/tools/deploy/check_sipe.sh (about) 1 #!/bin/bash 2 if [ ! -e ./param_config.sh ];then 3 echo "Make sure the file ./param_config.sh exists" 4 exit 1 5 fi 6 7 source ./param_config.sh 8 9 # shellcheck disable=SC2154 10 for((i=0;i<${#allNodeHosts[*]};i++)) 11 do 12 echo "${allNodeHosts[$i]}:" 13 # shellcheck disable=SC2086 14 ssh "${user}@${allNodeHosts[$i]}" "ps aux|grep sipe" 15 echo " " 16 echo " " 17 done 18