#!/bin/csh #script to run sicbmc on hep52.ph.liv.ac.uk from lxplus009 and send output back to lxplus009 via GLOBUS #to execute: source mapglobus.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 hep52.ph.liv.ac.uk &(executable=/bin/rm)(arguments=-rf ~/.globus/.gass_cache)(stdout=outtemp)" globusrun -r hep52.ph.liv.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 hep52.ph.liv.ac.uk:public/" globus-rcp -r /afs/cern.ch/user/e/evh/public/v233 hep52.ph.liv.ac.uk:public/ #copy the executable, database etc echo "globus-rcp /afs/cern.ch/user/e/evh/public/sicbmc.job hep52.ph.liv.ac.uk:public/sicbmc.job" globus-rcp /afs/cern.ch/user/e/evh/public/sicbmc.job hep52.ph.liv.ac.uk:public/sicbmc.job #change permissions on job script - -p option only works for directories echo "globusrun -r hep52.ph.liv.ac.uk &(executable=/bin/chmod)(arguments=+xxx public/sicbmc.job)(stdout=outtemp)" globusrun -r hep52.ph.liv.ac.uk '&(executable="/bin/chmod")(arguments="+xxx" "public/sicbmc.job")(stdout=tempout)' #change permissions on job script - -p option only works for directories echo "globusrun -r hep52.ph.liv.ac.uk &(executable=public/sicbmc.job)(stdout=MAP99450.out)" globusrun -r hep52.ph.liv.ac.uk '&(executable="public/sicbmc.job")(stdout=MAP99450.out)' #copy the joblog back to where we ran the job from echo "globus-rcp hep52.ph.liv.ac.uk:MAP99450.out MAP99450.out" globus-rcp hep52.ph.liv.ac.uk:MAP99450.out MAP99450.out #copy the datafile back to where we ran the job from echo "globus-rcp hep52.ph.liv.ac.uk:public/v233/L99450.dat L99450.dat" globus-rcp hep52.ph.liv.ac.uk:public/v233/L99450.dat L99450.dat #clear the cache due to same bug echo "globusrun -r hep52.ph.liv.ac.uk &(executable=/bin/rm)(arguments=-rf ~/.globus/.gass_cache)(stdout=outtemp)" globusrun -r hep52.ph.liv.ac.uk '&(executable="/bin/rm")(arguments="-rf" "~/.globus/.gass_cache")(stdout=tempout)'