Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:21:00

0001 #!/usr/bin/env bash
0002 export USER="$(id -u -n)"
0003 export LOGNAME=${USER}
0004 export HOME=/sphenix/u/${LOGNAME}
0005 
0006 source /opt/sphenix/core/bin/sphenix_setup.sh -n new
0007 
0008 exe=${1}
0009 input=${2}
0010 submitDir=${3}
0011 
0012 if [[ ! -z "$_CONDOR_SCRATCH_DIR" && -d $_CONDOR_SCRATCH_DIR ]]
0013  then
0014    cd $_CONDOR_SCRATCH_DIR
0015  else
0016    echo "condor scratch NOT set"
0017    exit -1
0018 fi
0019 
0020 # print the environment - needed for debugging
0021 printenv
0022 
0023 $exe $input
0024 
0025 echo "All Done and Transferring Files Back"
0026 cp -rv output/* $submitDir
0027 
0028 echo "Finished"