add protocol parsing

This commit is contained in:
2021-03-04 21:49:52 +01:00
parent 7a8597189c
commit fb0d174dcb
5 changed files with 21 additions and 2 deletions

6
get_last_proto.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -e
read -s -p "DB-Passwort: " password;
echo
echo $password | ssh fsmi "psql -A -t -h fsmi-db fsmi -c \"select protokoll from protokolle where ist_veroeffentlicht='f' order by datum desc limit 1\"" 2> /dev/null > data/last_proto