#!/bin/csh #script to run sicbmc at RAL from CERN (lxplus009) and send output back to CERN via GLOBUS #to execute: source ralglobus.sh #author: Eric v. H. #date: 20 september 2000 #improvements welcome! #set this variable due to bug related to use of multiple ca's setenv GLOBUS_HOSTNAME lxplus009.cern.ch #clear the cache due to same bug echo "globusrun -r csflnx01.rl.ac.uk &(executable=/bin/rm)(arguments=-rf ~/.globus/.gass_cache)(stdout=outtemp)" globusrun -r csflnx01.rl.ac.uk '&(executable="/bin/rm")(arguments="-rf" "~/.globus/.gass_cache")(stdout=tempout)' #copy the executable, database etc echo "globus-rcp -r /afs/cern.ch/user/e/evh/public/v233 csflnx01.rl.ac.uk:public" globus-rcp -r /afs/cern.ch/user/e/evh/public/v233 csflnx01.rl.ac.uk:public #clear the cache due to same bug echo "globusrun -r csflnx01.rl.ac.uk &(executable=/bin/rm)(arguments=-rf ~/.globus/.gass_cache)(stdout=outtemp)" globusrun -r csflnx01.rl.ac.uk '&(executable="/bin/rm")(arguments="-rf" "~/.globus/.gass_cache")(stdout=tempout)' #copy the job script echo "globus-rcp /afs/cern.ch/user/e/evh/public/sicbmc.job csflnx01.rl.ac.uk:public/sicbmc.job" globus-rcp /afs/cern.ch/user/e/evh/public/sicbmc.job csflnx01.rl.ac.uk:public/sicbmc.job #change permissions on job script - -p option only works for directories echo "globusrun -r csflnx01.rl.ac.uk &(executable=/bin/chmod)(arguments=+xxx public/sicbmc.job)(stdout=outtemp)" globusrun -r csflnx01.rl.ac.uk '&(executable="/bin/chmod")(arguments="+xxx" "public/sicbmc.job")(stdout=tempout)' #run the jobscript, and the job echo "globusrun -r csflnx01.rl.ac.uk &(executable=/home/csf/evh/public/sicbmc.job)(stdout=fromral99450.out)" globusrun -r csflnx01.rl.ac.uk '&(executable="/home/csf/evh/public/sicbmc.job")(stdout=fromral99450.out)' #copy the joblog back to where we ran the job from echo "globus-rcp csflnx01.rl.ac.uk:fromral99450.out fromral99450.out" globus-rcp csflnx01.rl.ac.uk:fromral99450.out fromral99450.out #copy the datafile back to where we ran the job from echo "globus-rcp csflnx01.rl.ac.ukl:public/v233/L99450.dat L99450.dat" globus-rcp csflnx01.rl.ac.ukl:public/v233/L99450.dat L99450.dat #clear the cache ready for next job echo "globusrun -r csflnx01.rl.ac.uk &(executable=/bin/rm)(arguments=-rf ~/.globus/.gass_cache)(stdout=outtemp)" globusrun -r csflnx01.rl.ac.uk '&(executable="/bin/rm")(arguments="-rf" "~/.globus/.gass_cache")(stdout=tempout)'