-
Notifications
You must be signed in to change notification settings - Fork 9
/
update_all_multithreading.sh
executable file
·55 lines (43 loc) · 1.55 KB
/
update_all_multithreading.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
echo === git pull
git pull
echo === fetching index.html - >index-online.html
wget -q -O index-online.html https://entorb.net/COVID-19-coronavirus/index.html
echo === fetching and generating new data
# echo ==== de-districts
python3 fetch-de-districts.py && echo gen-map-de-districts && python3 gen-map-de-districts.py &
# echo ==== de-divi
python3 fetch-de-divi-V2.py &
# echo ==== de-states
python3 fetch-de-states-data.py &
# echo ==== countries
python3 fetch-int-country-data.py &
# wait until all child processes are done
wait
# IDEA: run in background processes via appending '&'. Problem 1: how to know when ready for plotting? Problem 2: Errors are no longer displayed at the terminal
echo === plotting + uploading plots
# DO NOT DELETE because I stopped updateing the doubling time data !!! rm plots-gnuplot/*/*.png
cd scripts-gnuplot
gnuplot all.gp
bash upload-to-entorb.sh
cd ..
echo === uploading data
# (after plotting because gnuplot generates 2 data files as well)
cd data
bash upload-to-entorb.sh
cd ..
echo === uploading maps
cd maps
bash upload-to-entorb.sh
cd ..
echo === date of data
bash show_data_dates.sh
# echo === Check local html. Enter to copy and commit, CTRG+C to cancel
# read ok
#rsync -rvhu --delete --delete-excluded ../plots-gnuplot/* entorb@entorb.net:html/COVID-19-coronavirus/plots-gnuplot/
# scp index.html entorb@entorb.net:html/COVID-19-coronavirus/
rsync -vhu --no-perms index.html entorb@entorb.net:html/COVID-19-coronavirus/
echo === git: add and commit
git add data/*
git commit -m "update" | grep -v rewrite
git push --quiet