# Merge log files and sort by timestamp # Invoke from 'trunk' folder # TODO: Add error handling - missing files, not executed from 'trunk', ... # 1. Runs a python program named "extract_caddetails" # to extract CAD DETAIL lines from incident_script.xml # and creates an output file "caddetails.csv" PYTHONPATH=webapps/unifiedlogger.zip python -m extract_caddetails # 2. Define a variable for the directory containing the data files dir="webapps/dynamicdata" # 3. Merge three files: unified log, cad details, and evaluation ratings # then sort them by timestamp (reverse chronological). # Final result placed in "unifiedlog_final.csv" cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/ratings.csv | sort > $dir/unifiedlog_final.csv # 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html # to show a nicely formatted version of the results.