summaryrefslogtreecommitdiff
path: root/cv/scripts/wrapper_pc_cv_LOAEL_loo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cv/scripts/wrapper_pc_cv_LOAEL_loo.sh')
-rwxr-xr-xcv/scripts/wrapper_pc_cv_LOAEL_loo.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/cv/scripts/wrapper_pc_cv_LOAEL_loo.sh b/cv/scripts/wrapper_pc_cv_LOAEL_loo.sh
index f75f385..bf36a89 100755
--- a/cv/scripts/wrapper_pc_cv_LOAEL_loo.sh
+++ b/cv/scripts/wrapper_pc_cv_LOAEL_loo.sh
@@ -25,10 +25,14 @@ CV="CV_ds_pctype_algo_rseed_LOAEL_loo.rb"
FACTORS="$1"
# Don't start when running
-while ps x | grep $CV | grep -v grep >/dev/null 2>&1; do sleep 3; done
+while ps x | grep $CV | grep -v grep >/dev/null 2>&1; do sleep 30; done
LOGFILE="$THIS_DATE""$USER""_wrapper_pc_cv_LOAEL_loo.log"
-rm "$LOGFILE" >/dev/null 2>&1
+#rm "$LOGFILE" >/dev/null 2>&1
+if [ -f $LOGFILE ]
+then
+ LOGFILE="$LOGFILE`date +%M%S`"
+fi
cat $FACTORS | while read factor; do