Create process_output.sh
script to format ans summarize each output in the cards directory
This commit is contained in:
parent
fb62978e19
commit
6a1872ccf4
1 changed files with 17 additions and 0 deletions
17
scripts/crons/process_output.sh
Normal file
17
scripts/crons/process_output.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
||||
if [ ! -e $folder/$sub/summary.txt ]; then
|
||||
./scritps/summarize.py -a -v $folder/$sub/output.txt > summary.txt
|
||||
fi
|
||||
if [ ! -e $folder/$sub/cards.txt ]; then
|
||||
.decode.py -v -f $folder/$sub/output.txt $folder/$sub/cards.txt
|
||||
fi
|
||||
done
|
||||
done
|
Loading…
Reference in a new issue