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)"
8 #echo progfiles is $PROGFILES
10 # standard case for us still is opensim log...
11 BASE_LOG_FILE="$HOME/opensim/bin/OpenSim.log"
14 for ((i=20; i >= 1; i--)) do
15 OLDER_LOGS+="$BASE_LOG_FILE.$i "
18 #echo older is $OLDER_LOGS
20 grep -i "error\|text node\| bad \|warn\|deadlock\|exception\|missing\|violation\|failed" $OLDER_LOGS "$BASE_LOG_FILE" 2>/dev/null