]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/sim/spyFile.sh
Updates
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / spyFile.sh
index 6aa3e1731b3e38fbc6c5c20a2686cd4ac8722e8d..6b50873bf2cd8b6d153d5541178f9cd2c7abb3b3 100755 (executable)
@@ -81,7 +81,10 @@ while true ; do
        alien_spy $pid $file > $tmp
     fi
     l1=`stat -c %s $tmp`
-    l2=`stat -c %s $log` 
+    l2=0
+    if test -f $log ; then 
+       l2=`stat -c %s $log` 
+    fi
     if test $l1 -ge $l2 ; then 
        mv $tmp $log
     else