Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7938 r7944  
    3232#
    3333
     34source `dirname $0`/sourcefile
     35printprocesslog "INFO starting $0"
    3436program=processmcsequences
    35 source `dirname $0`/sourcefile
    3637
    3738set -C
    3839
    39 scriptlogpath=$runlogpath/$program
    40 makedir $scriptlogpath
    41 scriptlog=$scriptlogpath/$program`date +%F-%H-%M-%S`.log
    42 
     40scriptlog=$runlogpath/$program`date +%F-%H-%M-%S`.log
    4341date >> $scriptlog 2>&1
    4442
     
    5654
    5755# find montecarlo sequence files
     56printprocesslog "INFO processing mc sequences"
    5857sequfiles=`find $mcsequpath -type f`
    5958for sequfile in ${sequfiles[@]}
     
    9594   # if calibration worked -> run star for sequence
    9695   case $check1 in
    97       0)   echo "check1=$check1 -> everything ok..." >> $scriptlog 2>&1
     96      0)   echo " check1=$check1 -> everything ok..." >> $scriptlog 2>&1
     97           printprocesslog "INFO calibrated mc sequende $sequno successfully"
    9898           touch $caloutpath/.done
    9999           rm $caloutpath/.doing
     
    105105           
    106106           case $check2 in
    107               0)   echo "check2=$check2 -> everything ok..." >> $scriptlog 2>&1
     107              0)   echo " check2=$check2 -> everything ok..." >> $scriptlog 2>&1
     108                   printprocesslog "INFO run star successfully for mc sequende $sequno"
    108109                   touch $imgoutpath/.done
    109110                   ;;
    110               *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     111              *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     112                   printprocesslog "ERROR star failed for mc sequende $sequno"
    111113                   ;;
    112114           esac
    113115           ;;
    114       *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
     116      *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     117           printprocesslog "ERROR callisto failed for mc sequende $sequno"
     118           ;;
    115119   esac
    116120done
    117121
    118 rm -v $lockfile >> $scriptlog 2>&1
     122finish >> $scriptlog 2>&1
    119123
    120 set +C
    121 
    122 date  >> $scriptlog 2>&1
    123 
Note: See TracChangeset for help on using the changeset viewer.