1 2 3 4 5 6 7 8
#!/usr/bin/env bash scriptdir=$(dirname $(readlink -f $0)) cd ${scriptdir} while true do `pwd`/venv/bin/python main.py &>$HOME/logs/discordbot done