Ignore:
Timestamp:
02/08/06 18:03:41 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries

    r7482 r7486  
    5757
    5858# check if script is already running
    59 date > $lockfile >> $scriptlog 2>&1
    60 checklock0=$?
    61 case $checklock0 in
    62     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    63     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    64          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    65          date  >> $scriptlog 2>&1
    66          exit;;
    67     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    68 esac
     59checklock  >> $scriptlog 2>&1
    6960
    7061# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r7482 r7486  
    5555
    5656# check if script is already running
    57 date > $lockfile >> $scriptlog 2>&1
    58 checklock0=$?
    59 case $checklock0 in
    60     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    61     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    62          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    63          date  >> $scriptlog 2>&1
    64          exit;;
    65     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    66 esac
     57checklock  >> $scriptlog 2>&1
    6758
    6859# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/checkstardone

    r7482 r7486  
    5656
    5757# check if script is already running
    58 date > $lockfile >> $scriptlog 2>&1
    59 checklock0=$?
    60 case $checklock0 in
    61     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    62     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    63          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    64          date  >> $scriptlog 2>&1
    65          exit;;
    66     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    67 esac
     58checklock  >> $scriptlog 2>&1
    6859
    6960# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r7476 r7486  
    5858
    5959user=`whoami`
     60program=copyscript
    6061source /home/$user/Mars/datacenter/scripts/sourcefile
    6162
     
    7778
    7879# check if the script is already running
    79 date > $lockfile >> $scriptlog 2>&1
    80 checklock0=$?
    81 case $checklock0 in
    82     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    83     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    84          echo "-> copyscript is running -> exit" >> $scriptlog 2>&1
    85          date  >> $scriptlog 2>&1
    86          exit;;
    87     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    88 esac
     80checklock  >> $scriptlog 2>&1
    8981
    9082cd $transdir
  • trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck

    r7482 r7486  
    5252
    5353todofile=$listpath/ToDo-$table-$column
     54lockfile=$lockpath/lock-getting-$program-list.txt
    5455
    5556scriptlogpath=$logpath/run/$program/`date +%Y/%m`
     
    6667   echo " -> choose one file and start $program " >> $scriptlog 2>&1
    6768else
    68    date > $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
    69    checklock0=$?
    70    case $checklock0 in
    71        0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    72        1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    73             echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    74             date  >> $scriptlog 2>&1
    75             exit;;
    76        *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    77    esac
    78 
     69   # check if getting of list is already running
     70   checklock "getting list of" >> $scriptlog 2>&1
    7971   # get todo list
    8072   getdolist  >> $scriptlog 2>&1
    81 
    82    rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
     73   rm -v $lockfile >> $scriptlog 2>&1
    8374fi
    8475
  • trunk/MagicSoft/Mars/datacenter/scripts/doexclusions

    r7482 r7486  
    5757
    5858# check if the script is already running
    59 date > $lockfile >> $scriptlog 2>&1
    60 checklock0=$?
    61 case $checklock0 in
    62     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    63     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    64          echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    65          date  >> $scriptlog 2>&1
    66          exit;;
    67     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    68 esac
     59checklock  >> $scriptlog 2>&1
    6960
    7061# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots

    r7460 r7486  
    3434
    3535user=`whoami`
     36program=doqualityplots
    3637source /home/$user/Mars/datacenter/scripts/sourcefile
    3738
     
    5152# check if script is already running
    5253lockfile=$lockpath/lock-doqualityplots.txt
    53 date > $lockfile >> $scriptlog 2>&1
    54 checklock0=$?
    55 case $checklock0 in
    56     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    57     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    58          echo "-> for datacheck is running -> exit" >> $scriptlog 2>&1
    59          date  >> $scriptlog 2>&1
    60          exit;;
    61     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    62 esac
     54checklock  >> $scriptlog 2>&1
    6355
    6456# producing the plots with the values from the database
  • trunk/MagicSoft/Mars/datacenter/scripts/dowebplots

    r7460 r7486  
    3333
    3434user=`whoami`
     35program=dowebplots
    3536source /home/$user/Mars/datacenter/scripts/sourcefile
    3637
     
    5152# check if script is already running
    5253lockfile=$lockpath/lock-dowebplots.txt
    53 date > $lockfile >> $scriptlog 2>&1
    54 checklock0=$?
    55 case $checklock0 in
    56     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    57     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    58          echo "-> for datacheck is running -> exit" >> $scriptlog 2>&1
    59          date  >> $scriptlog 2>&1
    60          exit;;
    61     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    62 esac
    63 
     54checklock  >> $scriptlog 2>&1
    6455
    6556#finding all rootfiles in the webdirectory
  • trunk/MagicSoft/Mars/datacenter/scripts/filesondisk

    r7460 r7486  
    132132filename=$filesondisklogpath/rawfilesondisk-$date.txt
    133133column=fRawFileAvail
    134 find $datapath -name '*.raw' | cut -d_ -f2 > $filename
     134find $datapath -name '*.raw' -o -name '*.gz' | cut -d_ -f2 > $filename
    135135
    136136echo "resetting runs..."                                   
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto

    r7482 r7486  
    5858
    5959# check if the script is already running
    60 date > $lockfile >> $scriptlog 2>&1
    61 checklock0=$?
    62 case $checklock0 in
    63     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    64     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    65          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    66          date  >> $scriptlog 2>&1
    67          exit;;
    68     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    69 esac
     60checklock  >> $scriptlog 2>&1
    7061
    7162# get todo file
  • trunk/MagicSoft/Mars/datacenter/scripts/fillganymed

    r7482 r7486  
    5757
    5858# check if script is already running
    59 date > $lockfile >> $scriptlog 2>&1
    60 checklock0=$?
    61 case $checklock0 in
    62     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    63     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    64          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    65          date  >> $scriptlog 2>&1
    66          exit;;
    67     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    68 esac
     59checklock  >> $scriptlog 2>&1
    6960
    7061# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7482 r7486  
    5757
    5858# check if the script is already running
    59 date > $lockfile >> $scriptlog 2>&1
    60 checklock0=$?
    61 case $checklock0 in
    62     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    63     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    64          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    65          date  >> $scriptlog 2>&1
    66          exit;;
    67     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    68 esac
     59checklock  >> $scriptlog 2>&1
    6960
    7061# get todo list
  • trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets

    r7476 r7486  
    3333
    3434user=`whoami`
     35program=insertdatasets
    3536source /home/$user/Mars/datacenter/scripts/sourcefile
    3637
     
    4041
    4142datetime=`date +%F-%H-%M-%S`
     43lockfile=$lockpath/lock-insertdatasets.txt
    4244
    4345scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m`
     
    4850date >> $scriptlog 2>&1
    4951
    50 date > $lockpath/lock-insertdatasets.txt >> $scriptlog 2>&1
    51 checklock0=$?
    52 case $checklock0 in
    53     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    54     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    55          echo "-> insertdatasets is running -> exit" >> $scriptlog 2>&1
    56          date  >> $scriptlog 2>&1
    57          exit;;
    58     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    59 esac
     52# check if script is already running
     53checklock  >> $scriptlog 2>&1
    6054
    6155# get all datasetfiles
     
    112106done
    113107
    114 rm -v $lockpath/lock-insertdatasets.txt >> $scriptlog 2>&1
     108rm -v $lockfile >> $scriptlog 2>&1
    115109
    116110set +C
  • trunk/MagicSoft/Mars/datacenter/scripts/insertsequences

    r7460 r7486  
    3434
    3535user=`whoami`
     36program=insertsequences
    3637source /home/$user/Mars/datacenter/scripts/sourcefile
    3738
     
    5152
    5253# check if script is already running
    53 date > $lockpath/lock-insertsequences.txt >> $scriptlog 2>&1
    54 checklock0=$?
    55 case $checklock0 in
    56     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    57     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    58          echo "-> insertsequences is running -> exit" >> $scriptlog 2>&1
    59          date  >> $scriptlog 2>&1
    60          exit;;
    61     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    62 esac
     54checklock  >> $scriptlog 2>&1
    6355
    6456# finding manual written sequence files (marked by the comment '#manually changed')
  • trunk/MagicSoft/Mars/datacenter/scripts/linkmc

    r7472 r7486  
    4343
    4444user=`whoami`
     45program=linkmc
    4546source /home/$user/Mars/datacenter/scripts/sourcefile
    4647
     
    5556# check if script is already running
    5657lockfile=$lockpath/lock-mclinks.txt
    57 date > $lockfile >> $scriptlog 2>&1
    58 checklock0=$?
    59 case $checklock0 in
    60     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    61     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    62          echo "-> linkmc is running -> exit" >> $scriptlog 2>&1
    63          date  >> $scriptlog 2>&1
    64          exit;;
    65     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    66 esac
     58checklock  >> $scriptlog 2>&1
    6759
    6860mccampath=/montecarlo/camera
  • trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks

    r7483 r7486  
    5050# check if script is already running
    5151lockfile=$lockpath/lock-$program.txt
    52 date > $lockfile >> $scriptlog 2>&1
    53 checklock0=$?
    54 case $checklock0 in
    55     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    56     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    57          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    58          date  >> $scriptlog 2>&1
    59          exit;;
    60     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    61 esac
     52checklock  >> $scriptlog 2>&1
    6253
    6354# reason why calibration with standard callisto.rc fails
  • trunk/MagicSoft/Mars/datacenter/scripts/mcsequences

    r7460 r7486  
    3535
    3636user=`whoami`
     37program=mcsequences
    3738source /home/$user/Mars/datacenter/scripts/sourcefile
    3839
    3940set -C
    4041
    41 scriptlogpath=$logpath/run/mcsequences/`date +%Y/%m/%d`
     42scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    4243makedir $scriptlogpath
    43 scriptlog=$scriptlogpath/mcsequences`date +%F`.log
     44scriptlog=$scriptlogpath/$program`date +%F`.log
    4445
    4546date >> $scriptlog 2>&1
    4647
    4748# check if script is already running
    48 lockfile=$lockpath/lock-mcsequences.txt
    49 date > $lockfile >> $scriptlog 2>&1
    50 checklock0=$?
    51 case $checklock0 in
    52     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    53     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    54          echo "-> linkmc is running -> exit" >> $scriptlog 2>&1
    55          date  >> $scriptlog 2>&1
    56          exit;;
    57     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    58 esac
     49lockfile=$lockpath/lock-$program.txt
     50checklock  >> $scriptlog 2>&1
    5951
    6052
  • trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences

    r7477 r7486  
    3333
    3434user=`whoami`
     35program=processmcsequences
    3536source /home/$user/Mars/datacenter/scripts/sourcefile
    3637
    3738set -C
    3839
    39 scriptlogpath=$logpath/run/processmcsequences/`date +%Y/%m/%d`
     40scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
    4041makedir $scriptlogpath
    41 scriptlog=$scriptlogpath/processmcsequences`date +%F-%H-%M-%S`.log
     42scriptlog=$scriptlogpath/$program`date +%F-%H-%M-%S`.log
    4243
    4344date >> $scriptlog 2>&1
    4445
    4546# check if script is already running
    46 lockfile=$lockpath/lock-processmcsequences.txt
    47 date > $lockfile >> $scriptlog 2>&1
    48 checklock0=$?
    49 case $checklock0 in
    50     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    51     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    52          echo "-> processmcsequences is running -> exit" >> $scriptlog 2>&1
    53          date  >> $scriptlog 2>&1
    54          exit;;
    55     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    56 esac
     47lockfile=$lockpath/lock-$program.txt
     48checklock  >> $scriptlog 2>&1
    5749
    5850mcpath=/montecarlo/rawfiles
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7482 r7486  
    6262cd $mars
    6363
    64 # check if getting of list is already running
    65 date > $lockfile >> $scriptlog 2>&1
    66 checklock0=$?
    67 case $checklock0 in
    68     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    69     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    70          echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    71          date  >> $scriptlog 2>&1
    72          exit;;
    73     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    74 esac
    75 
    7664# get todo file
    7765echo "checking if other todo-files are there" >> $scriptlog 2>&1
     
    8169   echo " -> choose one file and start calibrating" >> $scriptlog 2>&1
    8270else
     71   # check if getting of list is already running
     72   checklock "getting list of" >> $scriptlog 2>&1
    8373   # get todo list
    8474   getdolist  >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/runganymed

    r7482 r7486  
    5858cd $mars
    5959
    60 # check if getting of list is already running
    61 date > $lockfile >> $scriptlog 2>&1
    62 checklock0=$?
    63 case $checklock0 in
    64     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    65     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    66          echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    67          date  >> $scriptlog 2>&1
    68          exit;;
    69     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    70 esac
    71 
    7260# finding todo file
    7361echo "checking if other todo-files are there" >> $scriptlog 2>&1
     
    7765   echo " -> choose one file and run $program" >> $scriptlog 2>&1
    7866else
     67   # check if getting of list is already running
     68   checklock "getting list of" >> $scriptlog 2>&1
    7969   # get todo list
    8070   getdolist  >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/runstar

    r7482 r7486  
    5858cd $mars
    5959
    60 # check if getting of list is already running
    61 date > $lockfile >> $scriptlog 2>&1
    62 checklock0=$?
    63 case $checklock0 in
    64     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    65     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    66          echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1
    67          date  >> $scriptlog 2>&1
    68          exit;;
    69     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    70 esac
    71 
    7260# finding todo file
    7361echo "checking if other todo-files are there" >> $scriptlog 2>&1
     
    7765   echo " -> choose one file and start calculation of image parameter" >> $scriptlog 2>&1
    7866else
     67   # check if getting of list is already running
     68   checklock "getting list of" >> $scriptlog 2>&1
    7969   # get todo list
    8070   getdolist  >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7482 r7486  
    100100}
    101101
     102function checklock()
     103{
     104   date > $lockfile
     105   checklock0=$?
     106   case $checklock0 in
     107       0)   echo "checklock0=$checklock0 -> continue " ;;
     108       1)   echo "checklock0=$checklock0 -> file $lockfile exists "
     109            echo "-> $@ $program is running -> exit"
     110            date
     111            exit;;
     112       *)   echo "checklock0=$checklock0 -> something went completely wrong" ;;
     113   esac
     114}
     115
    102116function getdolist()
    103117{
     
    162176                      returncode=$check
    163177                      failedcode=$com
    164                       failedcodeadd=$comadd
     178                      if ! [ "$comadd" = "" ]
     179                      then
     180                         failedcodeadd=$comadd
     181                      fi
    165182                      failedtime="Now()"
    166183                      ;;
  • trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles

    r7482 r7486  
    5757
    5858# check if script is already running
    59 date > $lockfile >> $scriptlog 2>&1
    60 checklock0=$?
    61 case $checklock0 in
    62     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    63     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    64          echo "-> $program is running -> exit" >> $scriptlog 2>&1
    65          date  >> $scriptlog 2>&1
    66          exit;;
    67     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    68 esac
     59checklock  >> $scriptlog 2>&1
    6960
    7061# get todo list
Note: See TracChangeset for help on using the changeset viewer.