diff --git a/scripts/claim.sh b/scripts/claim.sh index 1d0935b..8e3ae70 100644 --- a/scripts/claim.sh +++ b/scripts/claim.sh @@ -27,4 +27,6 @@ else echo "No email script, not sending." fi -bash ./scripts/train.sh "${JSON}" +ID=$(echo $JSON | jq -r '.id') + +screen -dm -S "${ID}" bash ./scripts/train.sh "${JSON}" diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 0000000..9fe39d7 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for i in {1..500}; do + echo "${1} ${i}" + sleep 2 +done