This commit is contained in:
2020-11-12 14:21:19 +01:00
parent 0aa7c05313
commit 3e42ca0bcd
7 changed files with 130 additions and 27 deletions

11
read_uvproto.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash -e
read -s -p "DB-Passwort: " password;
echo
raw_proto=$(echo $password | ssh fsmi "psql -A -t -h fsmi-db fsmi -c \"select datum from protokolle where ist_veroeffentlicht='f'\"" 2> /dev/null)
for proto in $raw_proto;
do
echo "* FSR-Protokoll vom $proto"
done | tee data/uvproto.txt
echo File has been written