Created
July 3, 2013 11:38
-
-
Save thbkrkr/5917212 to your computer and use it in GitHub Desktop.
clean formXpgih
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./cmd.sh 'for u in $(grep pgih /etc/passwd | cut -d ":" -f1); do sudo /usr/sbin/userdel -rf $u; done' | |
./cmd.sh 'rm -rf /pgih/*' | |
./cmd.sh '/sbin/shutdown -r 0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for v in $(cat list_vms) | |
do | |
echo "$v" | |
ssh -t root@$v "$1" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for v in $(cat list_vms)* | |
do | |
ssh-copy-id -i ~/.ssh/id_rsa.pub root@$v | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
form1pgih-ts | |
form1pgih-lb | |
form1pgih-aps1 | |
form1pgih-aps2 | |
form2pgih-ts | |
form2pgih-lb | |
form2pgih-aps1 | |
form2pgih-aps2 | |
form3pgih-ts | |
form3pgih-lb | |
form3pgih-aps1 | |
form3pgih-aps2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment