Changeset 638 in tmcsimulator for trunk/webapps/mergelogs.bash


Ignore:
Timestamp:
03/08/2021 01:26:46 PM (5 years ago)
Author:
jdalbey
Message:

mergelogs updated to be run from webapps folder and to include LCS samplelogfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/mergelogs.bash

    r637 r638  
    11# Merge log files and sort by timestamp 
    2 # Invoke from 'trunk' folder 
    3 # TODO: Add error handling - missing files, not executed from 'trunk', ...  
     2# Invoke from 'webapps' folder 
     3# TODO: Add error handling - missing files, not executed from 'webapps', ...  
    44 
    55# 1. Runs a python program named "extract_caddetails"  
    66# to extract CAD DETAIL lines from incident_script.xml 
    77# and creates an output file "caddetails.csv"  
    8 PYTHONPATH=webapps/unifiedlogger.zip  python -m extract_caddetails 
     8PYTHONPATH=unifiedlogger.zip  python -m extract_caddetails 
    99 
    1010# 2. Define a variable for the directory containing the data files 
    11 dir="webapps/dynamicdata" 
     11dir="dynamicdata" 
    1212 
    1313# 3. Merge three files: unified log, cad details, and evaluation ratings 
    1414# then sort them by timestamp (reverse chronological).   
    1515# Final result placed in "unifiedlog_final.csv" 
    16 cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv | sort > $dir/unifiedlog_final.csv 
     16cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv ../../../web2py/samplelogfile.txt | sort > $dir/unifiedlog_final.csv 
    1717 
    1818# 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html  
Note: See TracChangeset for help on using the changeset viewer.