-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_all_once.sh
executable file
·113 lines (93 loc) · 3.07 KB
/
run_all_once.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
TODAY=""
BACKTIME=""
DEBUG=false
while [ $# -gt 0 ] ; do
case $1 in
--debug)
export DEBUG=true
;;
--today)
shift
TODAY="$1"
;;
*)
;;
esac
shift
done
if [ "$TODAY" != "" ] ; then
Y=`echo $TODAY | cut -f1 -d-`
if [ "$Y" = "$TODAY" ] ; then
echo when asking for a specific date, please use \"--today YYYY-mm-dd\"
exit 1
fi
# M=`echo $TODAY | cut -f2 -d-`
# D=`echo $TODAY | cut -f3 -d-`
BACKTIME="--today $TODAY"
fi
#echo BACKTIME is \"$BACKTIME\"
echo harvest_bom barrack $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site barrack
sleep 1
echo harvest_bom meadow $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site meadow
sleep 1
echo harvest_bom kent $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site kent
sleep 1
echo harvest_bom lake alexandrina $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site alex
sleep 1
echo harvest_bom river murray lock 1 $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site murray1
sleep 1
echo harvest_bom river murray lock 6 $BACKTIME
./harvest_bom/BOM.sh $BACKTIME --site murray6
# echo harvest_bom jacup
# ./harvest_bom/BOM.sh $BACKTIME --site jacup
echo harvest_bom_tide $BACKTIME
./harvest_bom_tide/BOM_tide.sh $BACKTIME
echo harvest_dot fremantle $BACKTIME
./harvest_dot/DOT.sh $BACKTIME --site fremantle
echo harvest_dot barrack $BACKTIME
./harvest_dot/DOT.sh $BACKTIME --site barrack
echo harvest_dot peel $BACKTIME
./harvest_dot/DOT.sh $BACKTIME --site peel
echo harvest_dot mandurah $BACKTIME
./harvest_dot/DOT.sh $BACKTIME --site mandurah
echo harvest_dot mozzie $BACKTIME
./harvest_dot/DOT.sh $BACKTIME --site mozzie
echo harvest_dot_aws $BACKTIME
./harvest_dot_aws/DOTAWS.sh $BACKTIME
echo harvest_neon $BACKTIME
./harvest_neon/NEON.sh $BACKTIME
echo harvest_matilda $BACKTIME
./harvest_matilda/MATILDA.sh $BACKTIME
echo harvest_dpird $BACKTIME
# ./harvest_dpird/DPIRD.sh $BACKTIME
./harvest_dpird/DPIRD.sh $BACKTIME --site SP
./harvest_dpird/DPIRD.sh $BACKTIME --site DP001
./harvest_dpird/DPIRD.sh $BACKTIME --site QA001
./harvest_dpird/DPIRD.sh $BACKTIME --site MS001
./harvest_dpird/DPIRD.sh $BACKTIME --site GA001
./harvest_dpird/DPIRD.sh $BACKTIME --site DK001
echo harvest_lwn $BACKTIME
./harvest_lwn/LWN.sh $BACKTIME
echo harvest_mdba $BACKTIME
./harvest_mdba/MDBA.sh $BACKTIME --site Albert
./harvest_mdba/MDBA.sh $BACKTIME --site Alexandrina
./harvest_mdba/MDBA.sh $BACKTIME --site "Lock 1 Upstream"
./harvest_mdba/MDBA.sh $BACKTIME --site "Lock 1 Downstream"
echo harvest_dwer $BACKTIME
./harvest_dwer/DWER.sh $BACKTIME --site cockburn
./harvest_dwer/DWER.sh $BACKTIME --site flow
# ./harvest_dbca/DBCA.sh $BACKTIME --site sce
./harvest_wiski/WISKI.sh $BACKTIME
echo harvest_wir $BACKTIME
./harvest_wir/WIR.sh $BACKTIME
# DEW.sh takes a very long time (more than an hour) to run
# so leave it out for now
# echo harvest_dew $BACKTIME
# ./harvest_dew/DEW.sh $BACKTIME
exit 0