Files
fsr_generator/read_uvproto.sh
2020-11-12 14:21:19 +01:00

12 lines
328 B
Bash
Executable File

#!/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