diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-14 18:38:57 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-14 18:40:13 +0200 |
commit | 1d764bd32582e48082e1a2ed07f079ddc17fdf8a (patch) | |
tree | c444d3732ba1e7d146d0eed2e28cfcfcf64a0e4e | |
parent | 94f686085a5c5c8000ead50e7d34682d5021b7b5 (diff) | |
download | rtty-1d764bd32582e48082e1a2ed07f079ddc17fdf8a.tar.gz |
rd: Start ssh in batch mode, exec into rtty
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | rd | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -1,2 +1,4 @@ +rtty: rtty.c + install: rtty install rd rtty /usr/local/bin @@ -1,7 +1,11 @@ #!/bin/sh +# rd -- launch ssh session for rtty + in=/var/tmp/r.in out=/var/tmp/r.out rm $in $out 2>/dev/null mkfifo $in $out -<$in 2>&1 >$out ssh -tt "$@" + +<$in 2>&1 >$out ssh -oBatchMode=yes -tt "$@" & +exec rtty |