-
Notifications
You must be signed in to change notification settings - Fork 0
/
zrh-cronjob.sh
executable file
·25 lines (18 loc) · 977 Bytes
/
zrh-cronjob.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
#!/bin/bash
cd /home/pi/workspace/zrh
rm timetable.arrival.spotter.json
rm timetable.arrival.standard.json
rm timetable.departure.spotter.json
rm timetable.departure.standard.json
rm timetable.arrival.tom.spotter.json
rm timetable.arrival.tom.standard.json
rm timetable.departure.tom.spotter.json
rm timetable.departure.tom.standard.json
./zrh-fix-working-beta.py
./zrh-fix-2day.py
./spotter-sort.py timetable.arrival.standard.json timetable.arrival.spotter.json | awk '!x[$0]++' > temparrtod.txt
./spotter-sort-tom.py timetable.arrival.tom.standard.json timetable.arrival.tom.spotter.json | awk '!x[$0]++' > temparrtom.txt
cat temparrtod.txt temparrtom.txt > temparr.txt
./spotter-sort.py timetable.departure.standard.json timetable.departure.spotter.json | awk '!x[$0]++' > tempdeptod.txt
./spotter-sort-tom.py timetable.departure.tom.standard.json timetable.departure.tom.spotter.json | awk '!x[$0]++' > tempdeptom.txt
cat tempdeptod.txt tempdeptom.txt > tempdep.txt