]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Check the presence of the input file
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Jun 2008 13:09:23 +0000 (13:09 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 17 Jun 2008 13:09:23 +0000 (13:09 +0000)
not only the size (Marian)

TPC/macros/testTPC/action.sh

index c8fe9ec473034802dcf13594ab31b80b9e3eb4b1..bdb2cd08273a1ff79b819390ac35ec1e62d821b3 100755 (executable)
@@ -45,11 +45,23 @@ if [  $AGENTINPUTTYPE -eq 0 ]; then
     echo XRD COPY $2 ;
     xrdcp -np $2 data.root
 fi;
+
+
 echo GETTING DATA - STOP
 date
 echo LS DATA
 ls -al
  
+if [ -f data.root ]; then
+   ls -al data.root
+   echo "File found"
+else
+   echo "File not Found"
+   exit
+fi
+
+
+
 CISIZE=`ls -l data.root | gawk '{print $5}'`
 if [ $CISIZE -lt 100000 ]; then 
     exit