#!/bin/bash set -euo pipefail WEBROOT=/srv/http/wumpus.liw.fi while true; do echo "$(date "+%Y-%m-%s %H:%M:%S") Starting new test run" started="$(date +%s)" env RUST_BACKTRACE=full \ ./wumpus-hunter \ --keep \ --dir ~/heartwood \ --log "$WEBROOT/log.txt" \ --run-log "$WEBROOT" \ --stats "$WEBROOT/stats.txt" \ --counts "$WEBROOT/counts.html" || true ended="$(date +%s)" duration="$(expr "$ended" - "$started")" echo " $duration s" done