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

Revision 679, 1.2 KB checked in by jdalbey, 4 years ago (diff)

Update scripts and bat files to use config/devlinux files.

  • 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
14REM dir="webapps\dynamicdata"
15set dir="w:\webapps\dynamicdata"
16
17REM 3. Merge the unified log with cad details and evaluation ratings
18REM then sort them by timestamp (reverse chronological). 
19REM Final result placed in "sessionlog.csv"
20type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\sessionlog.csv
21
22
23REM 4. Next, launch the webserver and browse to localhost:8080/sessionlogdisplay.html
24REM    to show a nicely formatted version of the results.
25"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  webapps.tmcsim/sessionlogdisplay.html  &
26REM "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  localhost:8080/sessionlogdisplay.html  &
Note: See TracBrowser for help on using the repository browser.