Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. jq -r '.all[] | .name + " " + .ip' <<< "$ALL" |
  2. while read -r name ip; do
  3. if [[ "$name" == "Web" ]]; then
  4. echo "My server web is $ip"
  5. #if ssh root@"$ip" '[ ! -d /tmp/folder ]'; then
  6. # ssh -oStrictHostKeyChecking=no root@"$ip" '
  7. # mkdir /tmp/folder;
  8. # '
  9. #fi
  10. fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement