X-Git-Url: https://code.communitydata.science/covid19.git/blobdiff_plain/ff5521d44bf2d680e089b1fba7d92a134c98a7e6..3d0d4eee76ac828d8551134cbbc0e38a50998bde:/cron-wikipedia_views.sh diff --git a/cron-wikipedia_views.sh b/cron-wikipedia_views.sh index 3611657..4b39caa 100644 --- a/cron-wikipedia_views.sh +++ b/cron-wikipedia_views.sh @@ -3,11 +3,11 @@ TZ="UTC" date_string=$(date +%Y%m%d) -./wikipedia/scripts/wikiproject_scraper.py 2> >(tee wikipedia/logs/enwp-wikiproject_scraper-${date_string}.log) +view_log="enwp-daily_views-${date_string}.log" +./wikipedia/scripts/wikiproject_scraper.py 2> >(tee wikipedia/logs/{$view_log}) # get the list of files -view_log="enwp-daily_views-${date_string}.log" -./wikipedia/scripts/fetch_enwiki_daily_views.py 2> >(tee wikipedia/logs/${view_log}) +./wikipedia/scripts/fetch_enwiki_daily_views.py 2> >(tee -a wikipedia/logs/${view_log}) mv wikipedia/logs/${view_log} /var/www/covid19/wikipedia/logs/${view_log} mv wikipedia/data/digobs_covid19-wikipedia-enwiki_dailyviews-${date_string}.tsv /var/www/covid19/wikipedia/