From a0386a1ddade88187b415ba7a54906b28a021310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 10:34:57 +0200 Subject: rd: Remove named pipes at start --- Makefile | 2 ++ r | 4 ++++ r.sh | 4 ---- rd | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 Makefile create mode 100755 r delete mode 100755 r.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..de5bec0 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +install: + install r rd /usr/local/bin diff --git a/r b/r new file mode 100755 index 0000000..b73f3b2 --- /dev/null +++ b/r @@ -0,0 +1,4 @@ +#!/bin/sh + +cat /var/tmp/r.out & +cat > /var/tmp/r.in diff --git a/r.sh b/r.sh deleted file mode 100755 index b73f3b2..0000000 --- a/r.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -cat /var/tmp/r.out & -cat > /var/tmp/r.in diff --git a/rd b/rd index 3279929..03ff755 100755 --- a/rd +++ b/rd @@ -2,6 +2,6 @@ in=/var/tmp/r.in out=/var/tmp/r.out +rm $in $out 2>/dev/null mkfifo $in $out -#trap "rm $in $out" EXIT <$in 2>&1 >$out ssh "$@" -- cgit v1.2.3