Blame view

egs/callhome_egyptian/s5/local/monitor_denlats.sh 642 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  #!/usr/bin/env bash
  
  currentJob=0
  
  dir=/export/a04/gkumar/kaldi-trunk/egs/fishcall_es/j-matt/exp/sgmm2x_6a_denlats
  
  for f in $dir/.done.*; do
      d=`echo ${f##*/} | awk 'BEGIN {FS="."} {print $3}'`
      if [ $d -gt $currentJob ]; then
          currentJob=$d
      fi
  done
  
  currentJob=$((currentJob+1))
  
  echo Currently processing job : $currentJob
  
  for i in $(seq 210); do
      job[$i]=$i
  done
  
  dir=/export/a04/gkumar/kaldi-trunk/egs/fishcall_es/j-matt/exp/sgmm2x_6a_denlats/log/$currentJob/q
  
  for f in $dir/done.*; do
      d=`echo ${f##*/} | awk 'BEGIN {FS="."} {print $3}'`
      unset job[$d]
  done
  
  echo sub-splits left : ${#job[@]}
  echo ${job[@]}