Ignore:
Timestamp:
3 Dec 2007, 00:09:39 (17 years ago)
Author:
uli
Message:

Switched to python based event log parser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SysConf/logging/trunk/usr/local/sbin/updatedb_zevents.sh

    r2826 r2838  
    2323
    2424EVENT_LOG=event.test.log
    25 AWKZEVENT=zevents.awk
     25PYZEVENT=zevents.py
    2626
    2727## Read true values...
     
    3636#fi
    3737
    38 if [ ! -r $AWKZEVENT ]; then
    39     echo "File not readable: $AWKZEVENT";
     38if [ ! -r $PYZEVENT ]; then
     39    echo "File not readable: $PYZEVENT";
    4040    exit -1;
    4141fi
    42 cat $EVENT_LOG | gawk -v SQL=1 -f $AWKZEVENT | psql -h $HOST -d zevents -U $USER > /dev/null 2>&1
     42cat $EVENT_LOG | python $PYZEVENT | psql -h $HOST -d zevents -U $USER > /dev/null 2>&1
    4343
Note: See TracChangeset for help on using the changeset viewer.