Created
March 14, 2012 15:45
-
-
Save pgjones/2037380 to your computer and use it in GitHub Desktop.
Useful batch script file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CODEFOLDER=/home/jonesph/MCComparison/Electrons/RAT | |
DATAFOLDER=/data/snoplus/jonesph/MCComparisonData | |
TEMPFOLDER=$TMPDIR | |
source /home/jonesph/snoplusenv | |
file[1]=RAT5MeV | |
cd $TEMPFOLDER | |
for index in 1 | |
do | |
cp ${CODEFOLDER}/${file[index]}.mac . | |
rat ${file[index]}.mac | |
cp *.log ${DATAFOLDER}/${file[index]}.log | |
cp *.root ${DATAFOLDER}/ | |
rm *.log | |
rm *.root | |
done | |
cd $DATAFOLDER | |
root .X ${CODEFOLDER}/Extract.c | |
echo done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment