aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 09:49:22 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 09:49:22 +0200
commit99e20949b97cb04e03c7dffb80c9599a71497c08 (patch)
tree77a2b1476bfdddc647914216e256f7a7c762c8fa
parente3e99103ffa259cc89109227d4d150a25dda4930 (diff)
downloadrtty-99e20949b97cb04e03c7dffb80c9599a71497c08.tar.gz
Add rd
-rwxr-xr-xrd7
1 files changed, 7 insertions, 0 deletions
diff --git a/rd b/rd
new file mode 100755
index 0000000..3279929
--- /dev/null
+++ b/rd
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+in=/var/tmp/r.in
+out=/var/tmp/r.out
+mkfifo $in $out
+#trap "rm $in $out" EXIT
+<$in 2>&1 >$out ssh "$@"