X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=prof-remote;h=422bb6ec4ed5b55d7bbb6043a7eee76a2b2abaf2;hb=3f6c5b1f2c72614ee8cb4d0e4325e7beddda9c04;hp=d84889448e840fed321355154e4c5c44cdbd36ab;hpb=768363d8771edb9d9ed82425fa772d77b90139c0;p=distro-setup diff --git a/prof-remote b/prof-remote old mode 100755 new mode 100644 index d848894..422bb6e --- a/prof-remote +++ b/prof-remote @@ -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