start_cmp_qwbot.sh 407 B

123456789101112131415161718
  1. #!/bin/bash
  2. BOTPATH="$(pwd)"
  3. LIBPATH="$BOTPATH/libqwclient/"
  4. if [ "$(which realpath)" != "" ]; then
  5. LIBPATH="$(realpath $LIBPATH)"
  6. fi
  7. echo BOTPATH: "$BOTPATH"
  8. echo LIBPATH: "$LIBPATH"
  9. while [ 1 ]; do
  10. echo "started at $(date)" | tee -a runlog.log
  11. LD_LIBRARY_PATH="$LIBPATH" stdbuf -oL ./cmp_qwbot | tee -a runlog.log
  12. echo "crashed at $(date) - lol, we never crash." | tee -a runlog.log
  13. sleep 3
  14. done