More work on DB, script runners

This commit is contained in:
2020-06-11 21:16:39 -04:00
parent 3f9382e6f7
commit 122004f45f
4 changed files with 78 additions and 19 deletions

20
task_runner.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
if [[ -z "${LASTFM_APIKEY}" ]]; then
echo "LASTFM_APIKEY is not set"
exit
fi
if [[ -z "${SPOTIFY_CLIENTID}" ]]; then
echo "SPOTIFY_CLIENTID is not set"
exit
fi
if [[ -z "${SPOTIFY_SECRET}" ]]; then
echo "SPOTIFY_SECRET is not set"
exit
fi
while true; do
/usr/bin/time python "$1" --count 50 &>> "$1".log
done