1 2 3 4 5 6 7 8 9 10
for f in scrapers/*.py; do echo "Processing $f file.."; python $f; if [ "$?" -ne "0" ]; then echo "error"; sleep 2; fi done