Changeset 224

Show
Ignore:
Timestamp:
12/07/06 13:44:39 (2 years ago)
Author:
sacha
Message:

ania correct start date time
ania write command to big ania in a subshell.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/message-handling-refactor-branch/src/hefeweizen_ania.sh

    r167 r224  
    5050fi 
    5151 
    52 initiated_date_time=`date` 
    53  
     52initiated_date_time=`date -u` 
    5453#trap "echo 'infor: `date` - $$ - $0: ANIA Received signal INT, not exitting ... ';" INT 
    5554trap "echo 'infor: `date` - $$ - $0: ANIA Received signal INT, exitting ... '; run=false; echo 'dude_exit' > $PIPE_DIR/pipe_to_ania;" INT 
     
    413412    elif [[ $line =~ '.*to=big ania.*' ]]; then 
    414413        # for big ania 
    415         echo $line >> $PIPE_DIR/pipe_to_big_ania 
     414        (echo $line > $PIPE_DIR/pipe_to_big_ania &) 
     415        wait $! 
    416416    elif [[ $line =~ 'dude_exit' ]]; then 
    417417        debug Ania pipe reader received exit command 
  • branches/message-handling-refactor-branch/src/log.sh

    r172 r224  
    88my_exit() 
    99{ 
    10  
    11     (echo info : `date -u` - $$ - $0: Started ania at: $initiated_date -u_time) & 
     10     
     11    (echo info : `date -u` - $$ - $0: Started ania at: $initiated_date_time ) & 
    1212    wait $! 
    1313 
    14     (echo info : `date -u` - $$ - $0: Started ania at: $initiated_date -u_time >> $LOG_DIR/$LOG_FILE) & 
     14    (echo info : `date -u` - $$ - $0: Started ania at: $initiated_date_time >> $LOG_DIR/$LOG_FILE) & 
    1515    wait $! 
    1616 
     
    2727{ 
    2828    if [ $LOG_LEVEL_SCREEN = debug ]; then 
    29         (echo D, [`date -u`] DEBUG - $$ - $0: $*) & 
     29#        (echo D, [`date -u` \#$$] DEBUG - $0: $*) & 
     30        (echo D, [`date -u` \#$$] DEBUG - $*) & 
    3031        wait $! 
    3132    fi 
     
    4142{ 
    4243    if [ $LOG_LEVEL_SCREEN = info -o $LOG_LEVEL_SCREEN = debug ]; then 
    43         (echo I, [`date -u`] INFO - $$ - $0: $*) & 
     44#        (echo I, [`date -u`] INFO - $$ - $0: $*) & 
     45        (echo I, [`date -u` \*$$] INFO - $*) & 
    4446        wait $! 
    4547    fi 
     
    5557{ 
    5658    if [ $LOG_LEVEL_SCREEN = warn -o $LOG_LEVEL_SCREEN = info -o $LOG_LEVEL_SCREEN = debug ]; then 
    57         (echo W, [`date -u`] WARN - $$ - $0: $*) & 
     59#        (echo W, [`date -u`] WARN - $$ - $0: $*) & 
     60        (echo W, [`date -u` \#$$] WARN - $*) & 
    5861        wait $! 
    5962    fi 
     
    6972{ 
    7073    if [ $LOG_LEVEL_SCREEN = error -o $LOG_LEVEL_SCREEN = warn -o $LOG_LEVEL_SCREEN = info -o $LOG_LEVEL_SCREEN = debug ]; then 
    71         (echo E, [`date -u`] ERROR - $$ - $0: $*) & 
    72         wait $! 
     74#        (echo E, [`date -u`] ERROR - $$ - $0: $*) & 
     75        (echo E, [`date -u` \#$$] ERROR - $*) & 
     76       wait $! 
    7377    fi 
    7478