Changeset 638 in tmcsimulator for trunk/webapps/mergelogs.bash
- Timestamp:
- 03/08/2021 01:26:46 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/webapps/mergelogs.bash (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/mergelogs.bash
r637 r638 1 1 # Merge log files and sort by timestamp 2 # Invoke from ' trunk' folder3 # 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', ... 4 4 5 5 # 1. Runs a python program named "extract_caddetails" 6 6 # to extract CAD DETAIL lines from incident_script.xml 7 7 # and creates an output file "caddetails.csv" 8 PYTHONPATH= webapps/unifiedlogger.zip python -m extract_caddetails8 PYTHONPATH=unifiedlogger.zip python -m extract_caddetails 9 9 10 10 # 2. Define a variable for the directory containing the data files 11 dir=" webapps/dynamicdata"11 dir="dynamicdata" 12 12 13 13 # 3. Merge three files: unified log, cad details, and evaluation ratings 14 14 # then sort them by timestamp (reverse chronological). 15 15 # Final result placed in "unifiedlog_final.csv" 16 cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv | sort > $dir/unifiedlog_final.csv16 cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/evalratings.csv ../../../web2py/samplelogfile.txt | sort > $dir/unifiedlog_final.csv 17 17 18 18 # 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html
Note: See TracChangeset
for help on using the changeset viewer.
