diff --git a/Makefile b/Makefile index 6743405..2ccc210 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ DATESTAMP := $(shell date -u +%Y.%m%d.%H%M) all: + @echo try: + @echo make prep + @echo make screen + +local: mkdir $(DATESTAMP) inventory/inventory.sh $(DATESTAMP) cd cpu; make @@ -11,4 +16,7 @@ prep: 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" + cat loadbot/testservers |xargs --verbose -n 1 --replace=BLAH ssh BLAH "screen -d -m -S loadbot -c /root/benchmarks/screenrc" + +killall: + cat loadbot/testservers |xargs --verbose -n 1 --replace=BLAH ssh BLAH "killall screen" diff --git a/doit.sh b/doit.sh index f7e65ca..ec1f60d 100755 --- a/doit.sh +++ b/doit.sh @@ -7,4 +7,3 @@ time ./bc_sin.sh 1000 time ./bc_sin.sh 2000 time ./bc_sin.sh 4000 time ./bc_sin.sh 8000 -bash diff --git a/screenrc b/screenrc new file mode 100644 index 0000000..b06aa45 --- /dev/null +++ b/screenrc @@ -0,0 +1,3 @@ +screen -t loadbot 0 /root/benchmarks/doit.sh +logfile "loadbot.%n" +log on