[Swift-commit] r2059 - gasateria/bin
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Jun 12 15:57:23 CDT 2008
Author: houzx
Date: 2008-06-12 15:57:22 -0500 (Thu, 12 Jun 2008)
New Revision: 2059
Removed:
gasateria/bin/update-sites-cache-
Log:
Deleting file 'update-sites-cache-'
Deleted: gasateria/bin/update-sites-cache-
===================================================================
--- gasateria/bin/update-sites-cache- 2008-06-11 21:43:56 UTC (rev 2058)
+++ gasateria/bin/update-sites-cache- 2008-06-12 20:57:22 UTC (rev 2059)
@@ -1,59 +0,0 @@
-#/bin/bash
-CDATE=`date +%F-%R`
-DIR=`pwd`
-USER=`whoami`
-# get the grid computing sites
-GRID=$1
-VO=$2
-if [ "$GRID" == "" ]; then
- echo "Please input the GRID name as the first parameter."
- echo "The GRID can be:osg osg-itb (teragrid?)"
- echo "If necessary, please input the virtual organization name as the second parameter.Just use a space to separate the two parameters."
- echo "For osg, vo can be:CDF CMS CompBioGrid DES DOSAR DZero Engage Fermilab fMRI GADU geant4 GLOW GPN GRASE GridChem GridEx GROW i2u2 iVDGL LIGO mariachi MIS nanoHUB NWICG Ops OSG OSGEDU SDSS STAR USATLAS"
- exit
-fi
-
- if [ "$VO" == "" ]; then
- {
- /usr/bin/wget -O $DIR/tmp/$VO-vo-sitelist.txt "http://vors.grid.iu.edu/cgi-bin/tindex.cgi?grid=$GRID" 1>/dev/null 2>/dev/null
- }
- else
- {
- /usr/bin/wget -O $DIR/tmp/$VO-vo-sitelist.txt "http://vors.grid.iu.edu/cgi-bin/tindex.cgi?grid=$GRID&VO=$VO" 1>/dev/null 2>/dev/null
- }
- fi
-
-/bin/cat $DIR/tmp/$VO-vo-sitelist.txt |grep compute |grep PASS |awk -F, {'print $3'} > $DIR/tmp/$GRID-$VO-compute-sites.txt
-
-#touch sites-$CDATE.txt
-#for i in $(cat $DIR/tmp/$GRID-$VO-compute-sites.txt)
-for i in $(/bin/awk -F: '{print $1}' $DIR/tmp/$GRID-$VO-compute-sites.txt)
-do
- echo $i >> $DIR/tmp/sites-$CDATE.txt
- globusrun -a -r $i/jobmanager-fork >> $DIR/tmp/sites-$CDATE.txt
-done
-
-if [ -f $DIR/tmp/sites-$CDATE.txt ]; then
- m=0
- for i in $(sed -n '/success/=' $DIR/tmp/sites-$CDATE.txt)
-do
- #echo $i
- m=`expr $m + 1`
- j=`expr $i - 2`
- S=`sed -n "$j"p $DIR/tmp/sites-$CDATE.txt`
- echo $S >> $DIR/tmp/$GRID-$VO-sites-success-$CDATE.txt
-done
- echo " Now it's `date +%D-%R`.Altogether, there are $m successful available grid sites."
-fi
-
-#If there is new sites, update sites cache
-if [ $m > 24 ]; then
- for SITE in $(cat $DIR/tmp/$GRID-$VO-sites-success-$CDATE.txt)
- do
- /bin/grep $SITE $DIR/.osg-sites.cache >> $DIR/tmp/$GRID-$VO-avail-sites-$CDATE.txt
- done
-
-fi
-
-#clean the files
-/bin/rm -rf $DIR/tmp/sites-$CDATE.txt $DIR/tmp/$GRID-$VO-sites-success-$CDATE.txt
More information about the Swift-commit
mailing list