src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh 1.1

1.1 2009/09/25 00:34:31 angie
Adding refreshSessionCtFiles*csh which have been living in ~qateam/bin/scripts, and souped them up to use tmp file names based on hour, and to watch out for signs of multiple refresh jobs happening at once. makeExclusionList.pl now accepts doNotRmFile as an arg instead of hardcoding it.
Index: src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh
===================================================================
RCS file: src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh
diff -N src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh	25 Sep 2009 00:34:31 -0000	1.1
@@ -0,0 +1,22 @@
+#!/bin/csh -f
+
+# DO NOT EDIT the /cluster/bin/scripts copy of this file --
+# edit ~/kent/src/hg/utils/refreshNamedSessionCustomTracks/refreshSessionCtFiles.csh instead.
+
+# $Id$
+
+set logDir = /cluster/home/qateam/refrLog/hgcentral
+set hour = `date +%H`
+set tmpLog = $logDir/tmp.$hour.log
+set errLog = $logDir/err.$hour.log
+
+/cluster/bin/scripts/refreshSessionCtFilesInner.csh
+
+if ($status != 0) then
+  echo refreshSessionCtFilesInner.csh failed\!
+  tail $tmpLog
+  mv $tmpLog $errLog
+  exit 1
+endif
+
+rm $tmpLog