src/utils/qa/checkBOT.csh 1.13
1.13 2009/05/14 23:17:15 kuhn
removed sessionIDs to expose IP itself for getting location of user
Index: src/utils/qa/checkBOT.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/checkBOT.csh,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -B -U 4 -r1.12 -r1.13
--- src/utils/qa/checkBOT.csh 11 Apr 2009 00:37:01 -0000 1.12
+++ src/utils/qa/checkBOT.csh 14 May 2009 23:17:15 -0000 1.13
@@ -8,8 +8,9 @@
#
####################
set ip=""
+set chopIDs=""
set worst=""
set mode=""
if ($#argv < 1 || $#argv > 2 ) then
@@ -52,9 +53,12 @@
set worst=`echo $allIPs | awk '{print $1}'`
cat ipFile
echo
- foreach ip (`echo $allIPs`)
+ # get locations (strip off sessionID)
+ set chopIPs=`echo $allIPs | sed "s/ /\n/"g \
+ | awk -F"." '{print $NF-3"."$NF-2"."$NF-1"."$NF}'`
+ foreach ip (`echo $chopIPs`)
set orgName=`ipw $ip | grep OrgName | sed -e "s/OrgName: //"` > /dev/null
set current=`grep -w $ip ipFile | awk '{print $5}'`
echo "$ip\t\t$current\t $orgName"
end