# Merge log files and sort by timestamp # Invoke from 'webapps' folder # TODO: Add error handling - missing files, not executed from 'webapps', ... # 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=unifiedlogger.zip python -m extract_caddetails # 2. Define a variable for the directory containing the data files dir="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/evalratings.csv $dir/LCSlogfile.txt | 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.