moth/tools/mothd

15 lines
203 B
Plaintext
Raw Normal View History

2017-07-14 16:56:09 -06:00
#! /bin/sh
cd ${1:-$(dirname $0)}
2018-09-09 10:11:51 -06:00
MOTH_BASE=$(pwd)
2017-07-14 16:56:09 -06:00
2018-09-09 10:11:51 -06:00
echo "Running moth instances in $MOTH_BASE"
2017-07-14 16:56:09 -06:00
while true; do
2018-09-09 10:11:51 -06:00
for i in $MOTH_BASE/*/assigned.txt; do
2017-07-14 16:56:09 -06:00
dir=${i%/*}
$dir/bin/once
done
sleep 5
done