Browse Source

no compilation in while loop

Paul Klumpp 10 years ago
parent
commit
11fd53140c
1 changed files with 18 additions and 0 deletions
  1. 18 0
      start_cmp_qwbot.sh

+ 18 - 0
start_cmp_qwbot.sh

@@ -0,0 +1,18 @@
+#!/bin/bash
+
+BOTPATH="$(pwd)"
+LIBPATH="$BOTPATH/libqwclient/"
+if [ "$(which realpath)" != "" ]; then
+	LIBPATH="$(realpath $LIBPATH)"
+fi
+
+echo BOTPATH: "$BOTPATH"
+echo LIBPATH: "$LIBPATH"
+
+while [ 1 ]; do
+	echo "started at $(date)" | tee -a runlog.log
+	LD_LIBRARY_PATH="$LIBPATH" stdbuf -oL ./cimsqwbot | tee -a runlog.log
+	echo "crashed at $(date) - lol, we never crash." | tee -a runlog.log
+
+	sleep 3
+done