Changeset 671 in tmcsimulator
- Timestamp:
- 09/14/2022 08:16:19 PM (4 years ago)
- File:
-
- 1 moved
-
trunk/bin/postsession_logmerge.bat (moved) (moved from trunk/webapps/mergelogs.bat) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/postsession_logmerge.bat
r638 r671 3 3 REM TODO: Add error handling - missing files, not executed from 'trunk', ... 4 4 5 REM 1. Extract CAD DETAIL lines from incident_script.xml 5 REM Change to trunk folder 6 cd .. 7 8 REM 1. Runs a python program named "extract_caddetails" 9 REM to extract CAD DETAIL lines from incident_script.xml 10 REM and creates an output file "caddetails.csv" 6 11 set PYTHONPATH=webapps\unifiedlogger.zip python -m extract_caddetails 12 13 REM 2. Define a variable for the directory containing the data files 7 14 set dir="webapps\dynamicdata" 8 REM 2. Merge the unified log with cad details and evaluation ratings9 type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\unifiedlog_final.csv10 15 16 REM 3. Merge the unified log with cad details and evaluation ratings 17 REM then sort them by timestamp (reverse chronological). 18 REM Final result placed in "sessionlog.csv" 19 type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\sessionlog.csv 20 21 22 REM 4. Next, launch the webserver and browse to localhost:8080/sessionlogdisplay.html 23 REM to show a nicely formatted version of the results. 24 "C:\Program Files\Mozilla Firefox\firefox.exe" localhost:8080/sessionlogdisplay.html & 25
Note: See TracChangeset
for help on using the changeset viewer.
