source: tmcsimulator/trunk/bin/postsession_logmerge.bat @ 685

Revision 685, 1.0 KB checked in by jdalbey, 4 years ago (diff)

Add a postsession_logmerge bat file for dev

  • Property svn:executable set to *
Line 
1REM Merge log files and sort by timestamp
2REM Invoke from 'trunk' folder
3REM TODO: Add error handling - missing files, not executed from 'trunk', ...
4
5REM Change to trunk folder
6cd ..   
7
8REM 1. Runs a python program named "extract_caddetails"
9REM to extract CAD DETAIL lines from incident_script.xml
10REM and creates an output file "caddetails.csv"
11set PYTHONPATH=webapps\unifiedlogger.zip  python -m extract_caddetails
12
13REM 2. Define a variable for the directory containing the data files
14set dir="w:\webapps\dynamicdata"
15
16REM 3. Merge the unified log with cad details and evaluation ratings
17REM then sort them by timestamp (reverse chronological). 
18REM Final result placed in "sessionlog.csv"
19type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\sessionlog.csv
20
21
22REM 4. Next, launch the webserver and browse to localhost:8080/sessionlogdisplay.html
23REM    to show a nicely formatted version of the results.
24"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  webapps.tmcsim/sessionlogdisplay.html  &
25
Note: See TracBrowser for help on using the repository browser.