-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathautorun_cron.sh
executable file
·36 lines (28 loc) · 950 Bytes
/
autorun_cron.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
#!/bin/bash
if [ "$1" == "" ]; then
yest=$(date +%Y%m%d --date="1 day ago")
else
yest=$1
fi
if [ "$2" == "" ]; then
stations="all"
else
stations=$2
fi
echo $yest
daterange=${yest}-${yest}
echo $daterange
echo $stations
if [ "$stations" == "all" ] || [ "$stations" == "punta" ]; then
echo "start punta ${daterange} ${stations}"
#python3 test_data_avail.py --station punta --daterange $daterange
python3 run_assemble.py --station punta --daterange $daterange
python3 plot2d.py --station punta --daterange $daterange
python3 compress_data.py --station punta --daterange $daterange
fi
if [ "$stations" == "all" ] || [ "$stations" == "pollytau" ]; then
python3 test_data_avail.py --station pollytau --daterange $daterange
python3 run_assemble.py --station pollytau --daterange $daterange
python3 plot2d.py --station pollytau --daterange $daterange
python3 compress_data.py --station pollytau --daterange $daterange
fi