Last active
December 24, 2015 11:39
-
-
Save masayukig/6792227 to your computer and use it in GitHub Desktop.
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 | |
sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y | |
sudo apt-get install build-essential -y | |
wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz | |
tar xf UnixBench5.1.3.tgz | |
cd UnixBench | |
make | |
./Run |
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 | |
HOSTS="ec2.ap1.example.com ec2.ap2.example.com ec2.ap2.example.com" | |
for host in $HOSTS | |
do | |
echo ======= $host ====== | |
ssh ubuntu@$host 'tar zcf UnixBench-`hostname`.tar.gz UnixBench'; scp ubuntu@$host:~/UnixBench-ip*.tar.gz . | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment