Advertisement
b4887060

Untitled

Jul 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. gcloud compute instances list --filter="status:(running)" $1 | while read x; do
  2. zone=$(echo $x | awk '{print $2 }')
  3. name=$(echo $x | awk '{print $1 }')
  4. echo $zone $name
  5. gcloud compute ssh --zone $zone $name -- " sudo bash; sudo lastlog --clear -u 4114114749; "
  6. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement