68 |
|
fi |
69 |
|
|
70 |
|
echo "Going to run $command" |
71 |
< |
time eval $command |
71 |
> |
#time eval $command 3>&1 >&2 2>&3 3>&- | tee $1/log.txt |
72 |
> |
time eval $command 2>&1 | tee $1/log.txt |
73 |
|
echo "Done running limits" |
74 |
+ |
errorsencountered=`cat $1/log.txt | grep nan | wc -l` |
75 |
+ |
echo "DURING LIMIT COMPUTATOIN, AN ERROR LOG HAS BEEN WRITTEN TO $1/errorlog.txt which contains $errorsencountered not-a-value's" |
76 |
+ |
if [[ $errorsencountered -gt 20 ]]; then |
77 |
+ |
# something is seriously wrong, there's no point in continuing |
78 |
+ |
exit -1 |
79 |
+ |
fi |
80 |
+ |
|
81 |
|
outfile="INVALID" |
82 |
|
echo `pwd` |
83 |
|
for i in `ls -ltrh | grep root | grep ombine | awk '{ print $9 }'`; do |