Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9528)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9529)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2009/12/16 Stefan Ruegamer
+  
+   * datacenter/scripts/read_lapalma-tapes
+     - important output is now also written to shell
+
+
 
  2009/12/11
Index: trunk/MagicSoft/Mars/datacenter/scripts/read_lapalma-tapes
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/read_lapalma-tapes	(revision 9528)
+++ trunk/MagicSoft/Mars/datacenter/scripts/read_lapalma-tapes	(revision 9529)
@@ -69,6 +69,4 @@
 fi
 
-echo "Thank you. Your query is being processed. This will take some hours. Check the logfile $logfile for further information."
-
 # check if the tape is existing and which drives are free (---------p == present)
 tapeslot=`samcmd v 100 | grep "$tape " | cut -c-4 | sed -e 's/ //g'`
@@ -95,4 +93,6 @@
    drive=`echo $drive | cut -c1-3`
 fi
+
+echo "Thank you. Your query is being processed. This will take some hours. Check the logfile $logfile for further information."
 
 # check the available space on /magic and on /data; use preferably /data
@@ -152,5 +152,5 @@
 if [ "$md5" = "" ]
 then
-   echo "md5sum check failed! Please check what happened (see /home/lapalma/tapecont/cont/muxdata/checksums/tape_${tape}L*.md5.*). Exiting now." >> $logfile 2>&1
+   echo "md5sum check failed! Please check what happened (see /home/lapalma/tapecont/cont/muxdata/checksums/tape_${tape}L*.md5.*). Exiting now." | tee -a $logfile 2>&1
    exit
 else
@@ -196,5 +196,5 @@
 	 tapeslot=`samcmd v 100 | grep "$tape " | cut -c-4 | sed -e 's/ //g'`
    	 samcmd export 100:$tapeslot
-         echo -e "\nTape $tape read but the files have NOT been moved. You will have to do it manually. The tape has been exported. Have a nice day." >> $logfile 2>&1
+         echo -e "\nTape $tape read but the files have NOT been moved. You will have to do it manually. The tape has been exported. Have a nice day." | tee -a $logfile 2>&1
          date >> $logfile 2>&1
          exit
@@ -203,4 +203,4 @@
 fi
 
-echo -e "\nTape $tape read and files successfully moved. The tape has been exported. Have a nice day." >> $logfile 2>&1
-date >> $logfile 2>&1
+echo -e "\nTape $tape read and files successfully moved. The tape has been exported. Have a nice day." | tee -a $logfile 2>&1
+date >> $logfile 2>&1
