# Merge log files and sort by timestamp # Invoke from 'bin' folder # TODO: Add error handling - missing files, not executed from 'webapps', ... # Change to trunk folder cd .. # 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, LCSlogfile, and evaluation ratings # then sort them by timestamp (reverse chronological). # Final result placed in "sessionlog.csv" cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv $dir/LCSlogfile.txt | sort > $dir/sessionlog.csv # 4. Next, launch the webserver and browse to localhost:8080/sessionlogdisplay.html # to show a nicely formatted version of the results. firefox localhost:8080/sessionlogdisplay.html &