view stress_read.sh @ 1:1f53f31151d1

chmod u+x
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 02 Jul 2013 15:43:52 +0900
parents 21d45c3484bb
children df590d4c29bd
line wrap: on
line source

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

script=/home/mass/share/student/k128569/stress_read.rb

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

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