fastcon=0
while true; do
start=$EPOCHSECONDS
- ssh -t $remote screen -Dr -S profanity
+ # -n or else it competes with the other ssh for reading stdin.
+ ssh -n $remote prof-tail | prof-notify &
+ ssh -t $remote screen -Dr -S profanity ||:
+ builtin kill %% &> /dev/null ||:
if (( EPOCHSECONDS > start + 600 )); then
fastcon=0
fi