3 scriptdir=/home/lbnedaq/trj
5 localdonedir=/data/lbnedaq/data/transferred_files
6 localjsonarchive=/data/lbnedaq/data/metadata_forstoredfiles
8 source $scriptdir/senv.sh
12 for filename in `find . -mtime +2 -name "*.root"`
14 fbase=`basename $filename`
15 samlocation=`samweb -e lbne locate-file $fbase`
20 if [[ $samlocation == enstore* ]]
22 echo "Found location in enstore: " $samlocation
23 echo "Deleting " $filename
25 mv -v ${fbase}.json $localjsonarchive
27 echo "Did not find location in enstore: " $samlocation