ed84782073f23cedfa41596e1e6de157fb84270a
rhead
  Mon Oct 1 18:19:28 2012 -0700
Changed requirement to run on hgwdev to capability to run on either hgwdev or hgwbeta.
diff --git src/utils/qa/findOrg.csh src/utils/qa/findOrg.csh
index 09ce981..636b788 100755
--- src/utils/qa/findOrg.csh
+++ src/utils/qa/findOrg.csh
@@ -22,24 +22,29 @@
   echo
   exit 1
 else
   set db=$argv[1]
 endif
 
 if ( $#argv == 2 ) then
   set date=$argv[2]
   if ( $date != "date" ) then
     echo "\n  error. use the word 'date' as second parameter\n"  
     exit 1
   endif
   set date=", description"
 endif
 
-if ( "$HOST" != "hgwdev" ) then
- echo "\n ERROR: you must run this script on dev!\n"
+set host=`uname -n`
+if ( "$host" == hgwdev ) then
+  set centralDb=hgcentraltest
+else if ( "$host" == hgwbeta ) then
+  set centralDb=hgcentralbeta
+else
+  echo "\n  error.  Unknown host '$host'.  Can only be run from hgwdev or hgwbeta."
  exit 1
 endif
 
 hgsql -t -e "SELECT name, organism $date FROM dbDb WHERE NAME LIKE '$db%' \
-  ORDER BY name" hgcentraltest  | tail -n+3
+  ORDER BY name" $centralDb  | tail -n+3
 
 exit 0