aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xrd6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3720f8a..bdac189 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,4 @@
+rtty: rtty.c
+
install: rtty
install rd rtty /usr/local/bin
diff --git a/rd b/rd
index 9dc0123..601b5d1 100755
--- a/rd
+++ b/rd
@@ -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