3
# First we need to get into the main directory
5
if [[ ! -d ./bin ]]; then
7
if [[ ! -d ./bin ]]; then
8
echo "Error: survey must be executed from the main, or bin directory"
13
# Now let shell know where to find important executables
17
# Begin Local versions
18
# set dirbin = /home/tstelzer/bin/MG_ME
21
t=`find ./ -maxdepth 2 -name "ajob*" |wc -l`
22
r=`find ./ -maxdepth 2 -name "run.ajob*" |wc -l`
23
w=`find ./ -maxdepth 2 -name "wait.ajob*" |wc -l`
24
d=`find ./ -maxdepth 2 -name "done.ajob*" |wc -l`
26
echo "waiting while finishing jobs on cluster"
27
while [[ $d -lt $t ]]; do
30
echo $w $r $d $t > ../status
31
$dirbin/gen_crossxhtml-pl $1
33
t=`find ./ -maxdepth 2 -name "ajob*" |wc -l`
34
r=`find ./ -maxdepth 2 -name "run.ajob*" |wc -l`
35
w=`find ./ -maxdepth 2 -name "wait.ajob*" |wc -l`
36
d=`find ./ -maxdepth 2 -name "done.ajob*" |wc -l`