#! /bin/tcsh
#
# 07-Jan-2011, Brobeck
#   Changed prod02 to mcclogin
#--------------------------------------------------------
#
# arg must be either SLACDEV or SLACPROD
#
set who="`whoami`"
set where="`hostname`"
echo $who $where
if ($who == laci) then
  if ($where == mcclogin) then
    echo About to setup Oracle environment
    source /afs/slac/package/oracle/common/cora11genv.csh
    echo
    echo About to start Aida Names Update AIDAPROD on $1 - please be PATIENT!
    echo start /mccfs2/u1/lcls/tools/aida/aidaNamesUpdate.sql | sqlplus machine_model/mandel_br0t@$1
  else
    echo Sorry $who, this script meant for mcclogin
  endif
else
  echo Sorry $who, this script meant for the laci account
endif
echo
echo "Press <Enter> to dismiss window."
$<
