Groups migrated from datagov
[disclosr.git] / documents / runScrapers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
rm /tmp/disclosr-error
for f in scrapers/*.py; do
        echo "Processing $f file..";
        python $f 2>/tmp/disclosr-error;
        if [ "$?" -ne "0" ]; then
                echo "error";
                sleep 2;
        fi
done
if [ -s /tmp/disclosr-error ] ; then
    mail -E -s "Disclosr errors" maxious@lambdacomplex.org < /tmp/disclosr-error ;
fi