Changeset 9529


Ignore:
Timestamp:
Dec 16, 2009, 7:45:41 AM (11 years ago)
Author:
snruegam
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9528 r9529  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2009/12/16 Stefan Ruegamer
     22 
     23   * datacenter/scripts/read_lapalma-tapes
     24     - important output is now also written to shell
     25
     26
    2027
    2128 2009/12/11
  • trunk/MagicSoft/Mars/datacenter/scripts/read_lapalma-tapes

    r9233 r9529  
    6969fi
    7070
    71 echo "Thank you. Your query is being processed. This will take some hours. Check the logfile $logfile for further information."
    72 
    7371# check if the tape is existing and which drives are free (---------p == present)
    7472tapeslot=`samcmd v 100 | grep "$tape " | cut -c-4 | sed -e 's/ //g'`
     
    9593   drive=`echo $drive | cut -c1-3`
    9694fi
     95
     96echo "Thank you. Your query is being processed. This will take some hours. Check the logfile $logfile for further information."
    9797
    9898# check the available space on /magic and on /data; use preferably /data
     
    152152if [ "$md5" = "" ]
    153153then
    154    echo "md5sum check failed! Please check what happened (see /home/lapalma/tapecont/cont/muxdata/checksums/tape_${tape}L*.md5.*). Exiting now." >> $logfile 2>&1
     154   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
    155155   exit
    156156else
     
    196196         tapeslot=`samcmd v 100 | grep "$tape " | cut -c-4 | sed -e 's/ //g'`
    197197         samcmd export 100:$tapeslot
    198          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
     198         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
    199199         date >> $logfile 2>&1
    200200         exit
     
    203203fi
    204204
    205 echo -e "\nTape $tape read and files successfully moved. The tape has been exported. Have a nice day." >> $logfile 2>&1
    206 date >> $logfile 2>&1
     205echo -e "\nTape $tape read and files successfully moved. The tape has been exported. Have a nice day." | tee -a $logfile 2>&1
     206date >> $logfile 2>&1
Note: See TracChangeset for help on using the changeset viewer.