Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jq -r '.all[] | .name + " " + .ip' <<< "$ALL" |
- while read -r name ip; do
- if [[ "$name" == "Web" ]]; then
- echo "My server web is $ip"
- #if ssh root@"$ip" '[ ! -d /tmp/folder ]'; then
- # ssh -oStrictHostKeyChecking=no root@"$ip" '
- # mkdir /tmp/folder;
- # '
- #fi
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement