mostly fixes
[distro-setup] / prof-remote
old mode 100755 (executable)
new mode 100644 (file)
index d848894..422bb6e
@@ -7,7 +7,10 @@ remote=$1
 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