* generic wrapper doit.sh script to spawn in screen

* git pull repo when 'make prep' is run
This commit is contained in:
Jeff Carr 2011-09-26 17:19:04 -04:00
parent 72d601b5bb
commit 8601eb1b37
3 changed files with 13 additions and 1 deletions

View File

@ -8,3 +8,6 @@ all:
prep:
cat loadbot/testservers |xargs -n 1 --replace=BLAH scp loadbot/prep.pl BLAH:
cat loadbot/testservers |xargs -n 1 --replace=BLAH ssh BLAH ./prep.pl
screen:
cat loadbot/testservers |xargs -n 1 --replace=BLAH ssh BLAH "screen -d -m -S loadbot /root/benchmarks/doit.sh"

3
doit.sh Executable file
View File

@ -0,0 +1,3 @@
cd /root/benchmarks
make
bash

View File

@ -45,4 +45,10 @@ if ($return eq "-1") {
system "ifconfig";
}
my $return = system("git clone http://github.com/basilarchia/benchmarks.git");
if ( ! -e "benchmarks") {
my $return = system("git clone http://69.55.54.144/benchmarks/.git/");
} else {
chdir "benchmarks";
my $return = system("git pull");
}