src/utils/qa/getRRdatabases.csh 1.12
1.12 2010/01/22 21:17:18 kuhn
fixed getAssemblies.csh to work with RR machines and several other programs that it depends on. it broke when we went to a single mysql machine and genbank dumps only grab from hgnfs1
Index: src/utils/qa/getRRdatabases.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/getRRdatabases.csh,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -B -U 4 -r1.11 -r1.12
--- src/utils/qa/getRRdatabases.csh 5 May 2009 23:13:56 -0000 1.11
+++ src/utils/qa/getRRdatabases.csh 22 Jan 2010 21:17:18 -0000 1.12
@@ -23,12 +23,13 @@
if ( $#argv < 1 || $#argv > 2 ) then
echo
echo " gets the names of all databases on an RR machine"
- echo " not real-time. uses morning TABLE STATUS dump."
+ echo " not real-time. uses daily TABLE STATUS dump."
echo
echo " usage: machine [active]"
echo " use 'active' param to restrict list to only active DBs"
+ echo " will accept machine = rr"
echo
exit
else
set mach1=$argv[1]
@@ -36,15 +37,12 @@
set active=$argv[2]
endif
endif
-set machpath1=$rootpath/$mach1
-
-# check for valid machine names
-if ($mach1 == hgwdev || $mach1 == hgwbeta) then
- echo
- echo " $mach1 is not a RR node"
- echo
+if ( `echo $mach1 | egrep "hgw1|hgw2|hgw3|hgw4|hgw5|hgw6|hgw7|hgw8|rr"` == $mach1 ) then
+ set machpath1=$rootpath/hgnfs1
+else
+ set machpath1=$rootpath/$mach1
endif
set betalist=""
if (! -e $rootpath ) then
@@ -76,10 +74,11 @@
echo
exit 1
endif
-
+set debug="true"
set debug="false"
+
if ($debug == "true") then
echo
echo "mach1 $mach1"
echo