eos root://${EOSINSTANCE}ls${EOS_DIR} | egrep "${TEST_FILE_NAME_BASE}[0-9]+" | sed-e's/$/ copied/'>${STATUS_FILE=}
eos root://${EOSINSTANCE}ls${EOS_DIR} | egrep "${TEST_FILE_NAME_BASE}[0-9]+" | sed-e's/$/ copied/'>${STATUS_FILE}
echo status before
head${STATUS_FILE}
echo"Waiting for files to be on tape:"
SECONDS_PASSED=0
...
...
@@ -99,7 +102,10 @@ while test 0 != $(grep -c copied$ ${STATUS_FILE}); do
grep copied$ ${STATUS_FILE} | sed-e's/ .*$//' | sed-e"s;^;file info ${EOS_DIR}/;">${EOS_BATCHFILE}
# Updating all files statuses
eos root://${EOSINSTANCE}ls-y${EOS_DIR} | head
eos root://${EOSINSTANCE}ls-y${EOS_DIR} | sed-e's/^\(d.::t.\).*\(test[0-9]\+\)$/\2 \1/;s/d[^0]::t[^0]/archived/;s/d[^0]::t0/copied/;s/d0::t0/error/;s/d0::t[^0]/tapeonly/'>${STATUS_FILE}
echo status in loop
head${STATUS_FILE}
done
...
...
@@ -176,7 +182,7 @@ test -z $TAILPID || kill ${TAILPID}
test${RETRIEVED}=${NB_FILES}&&exit 0
echo"ERROR there were some lost files during the archive/retrieve test with ${NB_FILES} files:"