hiro:
> If I run ssh from that environment it shouldn't just start the
> configured shell in the server that I login to. It should instead run
> dtach on the server and the shell inside, so that when I resume my
> laptop and regain network connectivity that same script that wraps ssh
> will start a new ssh session and attach to the old dtach'ed shell
> automatically.
if [ ! $TMUX ] && [[ $(hostname) = "alice" ]]
then
tmux attach-session || tmux new-session
logout
fi
--
ilf
Über 80 Millionen Deutsche benutzen keine Konsole. Klick dich nicht weg!
-- Eine Initiative des Bundesamtes für Tastaturbenutzung
Received on Mon Mar 27 2017 - 17:51:53 CEST