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

Legend:

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

    r7944 r7945  
    4040
    4141runlogpath=$logpath/run/`date +%Y/%m/%d`
    42 makedir $runlogpath
    43 processlog=$runlogpath/process`date +%F`.log
     42processlog=$logpath/processlog/process`date +%F`.log
    4443
    4544datetime=`date +%F-%H-%M-%S`
     
    113112# defined
    114113
    115 function printprocesslog
    116 {
    117    makedir $processlogpath
    118    echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] "$@ >> $processlog
    119 }
    120    
    121 # function to exit a script properly
    122 function finish()
    123 {
    124    rm -v $todofile
    125    rm -v $lockfile
    126    date
    127    printprocesslog "INFO finished $program"
    128    exit
    129 }
    130 
    131 # function to do continue in a loop and produce according logging
    132 function cont()
    133 {
    134    date
    135    echo ""
    136    continue
    137 }
    138 
    139114# function to make sure that a directory is made
    140115function makedir()
     
    149124     fi
    150125   fi
     126}
     127makedir $runlogpath
     128makedir $processlogpath
     129
     130
     131function printprocesslog
     132{
     133   makedir $processlogpath
     134   echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] "$@ >> $processlog
     135}
     136   
     137# function to exit a script properly
     138function finish()
     139{
     140   rm -v $todofile
     141   rm -v $lockfile
     142   date
     143   printprocesslog "INFO finished $program"
     144   exit
     145}
     146
     147# function to do continue in a loop and produce according logging
     148function cont()
     149{
     150   date
     151   echo ""
     152   continue
    151153}
    152154
Note: See TracChangeset for help on using the changeset viewer.