Commit fd8635c1 authored by Nicolo Magini's avatar Nicolo Magini
Browse files

Updated lcg_utils to new version on SAM UI

parent 8d6b2e40
......@@ -6,7 +6,7 @@
#
# loading lcg_util164 libraries
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
nodeName=$1
......@@ -30,7 +30,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp --version
which lcg-cp
lcg-cp --version
set +x
echo "</pre>"
......@@ -75,7 +76,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
result=$?
set +x
echo "</pre>"
......@@ -102,7 +103,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -T srmv2 -s ${SPACE} -v ${SURL} file:/tmp/test-${cdate}.txt
lcg-cp -b --vo ${VO} -D srmv2 -T srmv2 -s ${SPACE} -v ${SURL} file:/tmp/test-${cdate}.txt
lresult=$?
set +x
echo "</pre>"
......@@ -125,7 +126,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......@@ -192,7 +193,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-put-stderr
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-put-stderr
#copyresult=${PIPESTATUS[0]}
copyresult=$?
set +x
......@@ -242,7 +243,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -T srmv2 -v ${SURL} file:/tmp/test-${cdate}.txt 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-get-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-get-stderr
lcg-cp -b --vo ${VO} -D srmv2 -T srmv2 -v ${SURL} file:/tmp/test-${cdate}.txt 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-get-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-get-stderr
lresult=$?
set +x
cat $SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-cp-get-output | sed 's/\&/\&amp;/g' | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'
......@@ -273,7 +274,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......
......@@ -7,7 +7,7 @@
#
# loading lcg_util164 libraries
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
nodeName=$1
......@@ -31,7 +31,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp --version
which lcg-cp
lcg-cp --version
set +x
echo "</pre>"
......@@ -81,7 +82,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
result=$?
set +x
echo "</pre>"
......@@ -114,7 +115,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
for prot in ${var} ; do
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} ${prot}
lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} ${prot}
gtresult=$?
set +x
echo "</pre>"
......@@ -140,7 +141,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
#
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......@@ -204,7 +205,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-put-stderr
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-put-stderr
#copyresult=${PIPESTATUS[0]}
copyresult=$?
set +x
......@@ -257,7 +258,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
for prot in ${var} ; do
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 ${SURL} ${prot}
lcg-gt -b -D srmv2 -T srmv2 ${SURL} ${prot}
gtresult=$?
set +x
echo "</pre>"
......@@ -280,7 +281,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
#
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......
......@@ -4,7 +4,7 @@
# the gsiftp protocol. Then the file is removed and the TURL is requested again.
# The copy is performed in the provided space tokens and in the default space.
#
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
nodeName=$1
......@@ -31,7 +31,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp --version
which lcg-cp
lcg-cp --version
set +x
echo "</pre>"
......@@ -77,7 +78,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
result=$?
set +x
echo "</pre>"
......@@ -109,7 +110,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
tresult=2
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} gsiftp
lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} gsiftp
gtresult=$?
set +x
echo "</pre>"
......@@ -128,7 +129,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
#
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......@@ -150,7 +151,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} gsiftp
lcg-gt -b -D srmv2 -T srmv2 -s ${SPACE} ${SURL} gsiftp
tresult=$?
set +x
echo "</pre>"
......@@ -215,7 +216,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-rm-gt-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-rm-gt-put-stderr
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-rm-gt-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-gt-rm-gt-put-stderr
#copyresult=${PIPESTATUS[0]}
copyresult=$?
set +x
......@@ -267,7 +268,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 ${SURL} gsiftp
lcg-gt -b -D srmv2 -T srmv2 ${SURL} gsiftp
gtresult=$?
set +x
echo "</pre>"
......@@ -285,7 +286,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
#
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......@@ -304,7 +305,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-gt -b -D srmv2 -T srmv2 ${SURL} gsiftp
lcg-gt -b -D srmv2 -T srmv2 ${SURL} gsiftp
tresult=$?
set +x
echo "</pre>"
......
......@@ -5,7 +5,7 @@
#
# loading lcg_util164 libraries
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
nodeName=$1
......@@ -29,7 +29,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp --version
which lcg-cp
lcg-cp --version
set +x
echo "</pre>"
......@@ -74,7 +75,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -S ${SPACE} -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
result=$?
set +x
echo "</pre>"
......@@ -92,7 +93,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-ls -b -T srmv2 -l ${SURL}
lcg-ls -b -T srmv2 -l ${SURL}
lresult=$?
set +x
echo "</pre>"
......@@ -114,7 +115,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/VOInfo.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......@@ -180,7 +181,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-ls-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-ls-put-stderr
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL} 1>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-ls-put-output 2>$SAME_SENSOR_WORK/nodes/$nodeName/SRMv2-lcg-ls-put-stderr
#copyresult=${PIPESTATUS[0]}
copyresult=$?
set +x
......@@ -221,7 +222,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-ls -b -T srmv2 -l ${SURL}
lcg-ls -b -T srmv2 -l ${SURL}
lresult=$?
set +x
echo "</pre>"
......@@ -241,7 +242,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......
......@@ -4,7 +4,7 @@
#
# loading lcg_util164 libraries
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
nodeName=$1
......@@ -28,7 +28,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-ls --version
which lcg-ls
lcg-ls --version
set +x
echo "</pre>"
......@@ -52,7 +53,7 @@ cat $SAME_SENSOR_WORK/nodes/$nodeName/SApath.txt | while read line
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-ls -b -T srmv2 -l -d ${SURL}
lcg-ls -b -T srmv2 -l -d ${SURL}
result=$?
set +x
echo "</pre>"
......
......@@ -76,7 +76,7 @@ fi
# loading lcg_util164 libraries
LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
#LD_LIBRARY_PATH=$HOME/bin/external/usr/lib:$HOME/bin/lcg_utils164+gfal1105/lib:$LD_LIBRARY_PATH
cdate=`date '+%Y%m%d-%H%M%S'`
......@@ -99,7 +99,8 @@ echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp --version
which lcg-cp
lcg-cp --version
set +x
echo "</pre>"
......@@ -130,8 +131,8 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/userpath.txt ] ; then
echo "<p>"
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
#$HOME/bin/lcg_utils164+gfal1105/bin/lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:/afs/cern.ch/user/b/belforte/scratch0/oneEvt.root ${SURL}
lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:$SAME_SENSOR_WORK/testFile.txt ${SURL}
#lcg-cp -b --vo ${VO} -D srmv2 -U srmv2 -v file:/afs/cern.ch/user/b/belforte/scratch0/oneEvt.root ${SURL}
result=$?
set +x
echo "</pre>"
......@@ -147,7 +148,7 @@ if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/userpath.txt ] ; then
echo "<pre>"
set -x
$HOME/bin/lcg_utils164+gfal1105/bin/lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
lcg-del -v -b -l -D srmv2 -T srmv2 --vo ${VO} ${SURL}
dresult=$?
set +x
echo "</pre>"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment