view stress_read_cassandra.sh @ 0:f049a3340d2c

added some files
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Wed, 17 Jul 2013 08:07:00 +0900
parents
children d4f55fd47603
line wrap: on
line source

#!/bin/sh
#
#PBS -q tqueue
#PBS -N read_cassandra_4core
#PBS -l walltime=00:05:00

script=/home/mass/share/student/k118585/stress_read_cassandra.rb

function run() {
 while read serv
 do
  ssh $serv -o "StrictHostKeyChecking no" "/usr/bin/ruby $script $schedule $times" &
 done   
 wait
}

uniq $PBS_NODEFILE /tmp/nodes
run < /tmp/nodes