first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / opensim / scan_opensim_log.sh
1 #!/bin/bash
2
3 # an example for windows with the log located under program files.
4 #PROGFILES="c:/Program Files"
5 #if [ -d "$PROGFILES (x86)" ]; then
6 #  PROGFILES="$PROGFILES (x86)"
7 #fi
8 #echo progfiles is $PROGFILES
9
10 # standard case for us still is opensim log...
11 BASE_LOG_FILE="$HOME/opensim/bin/OpenSim.log"
12
13 OLDER_LOGS=
14 for ((i=20; i >= 1; i--)) do
15   OLDER_LOGS+="$BASE_LOG_FILE.$i "
16 done
17
18 #echo older is $OLDER_LOGS
19
20 grep -i "error\|text node\| bad \|warn\|deadlock\|exception\|missing\|violation\|failed" $OLDER_LOGS "$BASE_LOG_FILE" 2>/dev/null
21