[Swift-commit] r6129 - SwiftApps/SciColSim

wilde at ci.uchicago.edu wilde at ci.uchicago.edu
Thu Jan 3 18:34:31 CST 2013


Author: wilde
Date: 2013-01-03 18:34:31 -0600 (Thu, 03 Jan 2013)
New Revision: 6129

Added:
   SwiftApps/SciColSim/monitor_run.sh
Log:
New script to monitor run status and place app-level progress stats into a web page.

Added: SwiftApps/SciColSim/monitor_run.sh
===================================================================
--- SwiftApps/SciColSim/monitor_run.sh	                        (rev 0)
+++ SwiftApps/SciColSim/monitor_run.sh	2013-01-04 00:34:31 UTC (rev 6129)
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+interval=120 # seconds between snapshots
+statusdir=$HOME/public_html/scicol/status
+
+mkdir -p $statusdir
+
+if [ _$(basename $PWD | sed -e 's/run...$/run/') = _run ]; then
+  runid=$(basename $PWD)
+else
+  runid=$(/bin/ls -1td run??? | head -1)
+  cd $runid
+fi
+
+echo monitoring run id $runid
+
+source ./params.annealing
+
+min=$min_target_innovation
+inc=$target_innovation_increment
+max=$max_target_innovation
+
+while true; do
+  
+  ../bin/convertbest.sh
+
+  (echo status of run $PWD at $(date);
+   echo -e "\nParameters:\n"
+   cat paramfile
+   echo -e "\nLatest status of all targets:\n"
+   for s in $(seq $min $inc $max); do tail -1 best.T$s.R1.fmt; done
+   echo -e "\nLatest results from each target:\n"
+   more $(for s in $(seq $min $inc $max); do echo best.T$s.R1.fmt; done)
+   echo -e "\nResults above are from files last changed at these times:\n"
+   ls -lt best.*.txt
+   echo -e "\nBeagle job status:\n"
+   xtnodestat | grep $USER
+  ) >$statusdir/$runid
+
+  sleep $interval
+
+done


Property changes on: SwiftApps/SciColSim/monitor_run.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Swift-commit mailing list