Skip to content

Instantly share code, notes, and snippets.

@masayukig
Last active December 24, 2015 11:39
Show Gist options
  • Save masayukig/6792227 to your computer and use it in GitHub Desktop.
Save masayukig/6792227 to your computer and use it in GitHub Desktop.
#!/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
#!/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