2015-10-30 16:05:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# every 5 min
|
|
|
|
|
|
|
|
## */30 * * * * ~/mtgencode/scripts/crons/process_output.sh
|
|
|
|
|
|
|
|
cd ~/mtgencode/cards
|
|
|
|
|
|
|
|
for folder in $(ls); do
|
|
|
|
for sub in ${ ls ${folder} };do
|
2015-11-02 16:10:06 +00:00
|
|
|
if [ ! -d $folder/$sub ]; then
|
|
|
|
continue
|
2015-10-30 16:05:15 +00:00
|
|
|
if [ ! -e $folder/$sub/summary.txt ]; then
|
|
|
|
./scritps/summarize.py -a -v $folder/$sub/output.txt > summary.txt
|
|
|
|
fi
|
2015-11-02 16:10:06 +00:00
|
|
|
if [ ! -e $folder/$sub/cards.txt ]; then
|
2015-10-30 16:05:15 +00:00
|
|
|
.decode.py -v -f $folder/$sub/output.txt $folder/$sub/cards.txt
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|