Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcloud compute instances list --filter="status:(running)" $1 | while read x; do
- zone=$(echo $x | awk '{print $2 }')
- name=$(echo $x | awk '{print $1 }')
- echo $zone $name
- gcloud compute ssh --zone $zone $name -- " sudo bash; sudo lastlog --clear -u 4114114749; "
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement