diff options
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/spawn | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -5,13 +5,12 @@ SOCKDIR=$(mktemp -d) SOCKF=${SOCKDIR}/usock # Start tmux, if needed -if ! tmux ls | grep -q rshell; then - tmux new -s rshell -d +if ! tmux ls | grep -q rshsh; then + tmux new -s rshsh -d fi # Create window -# Let's just see it works -tmux new-window -t rshell "socat UNIX-LISTEN:${SOCKF},umask=0077 STDIO" +tmux new-window -t rshsh "socat UNIX-LISTEN:${SOCKF},umask=0077 file:\$(tty),raw,echo=0" # Wait for socket while test ! -e ${SOCKF} ; do sleep 1 ; done |
