Script meetings/bin/meeting-follow
./bin/meeting-follow
Display the transcript while it is generated.
Usage
meeting-follow
Script
#!/usr/bin/env bash
set -euo pipefail
BASE="$HOME/meetings/recordings"
CURRENT="$BASE/.current"
echo "📄 Waiting for active meeting session…"
# Wait until a current session is announced
while [[ ! -f "$CURRENT" ]]; do
sleep 0.5
done
SESSION="$(cat "$CURRENT")"
TRANSCRIPT="$SESSION/transcript.txt"
echo "📄 Following transcript:"
echo " Session: $SESSION"
echo " File: $TRANSCRIPT"
echo "----"
# Wait until transcript file exists
while [[ ! -f "$TRANSCRIPT" ]]; do
sleep 0.5
done
tail -f "$TRANSCRIPT"
Expected behaviour:
meeting-follow will check the file $HOME/meetings/recordings/.current if an active transcript session exists. If not, it waits until the information about the active session has been added by meeting-start and will then start displaying the transcript.