add initial man page - teed - A multiplex relay tee(1) daemon. HTML git clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 66db6db25fc61d5f44642b2558b9f9b1dcffdab2 DIR parent acaa427d4d4fa8e8ce6e626e94ec922d50316ee7 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 14 Aug 2023 14:19:52 +0200 add initial man page Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M Makefile | 9 ++++----- A teed.8 | 39 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) --- DIR diff --git a/Makefile b/Makefile @@ -32,14 +32,13 @@ install: all mkdir -p "${DESTDIR}${BINDIR}" cp -f ${NAME} "${DESTDIR}${BINDIR}" chmod 755 "${DESTDIR}${BINDIR}/${NAME}" - # TODO: Make a manpage. - #mkdir -p "${DESTDIR}${MANDIR}" - #cp -f ${NAME}.8 "${DESTDIR}${MANDIR}" - #chmod 644 "${DESTDIR}${MANDIR}/${NAME}.8" + mkdir -p "${DESTDIR}${MANDIR}" + cp -f ${NAME}.8 "${DESTDIR}${MANDIR}" + chmod 644 "${DESTDIR}${MANDIR}/${NAME}.8" uninstall: rm -f "${DESTDIR}${BINDIR}/${NAME}" - #rm -f "${DESTDIR}${MANDIR}/${NAME}.8" + rm -f "${DESTDIR}${MANDIR}/${NAME}.8" telemetry: printf "/telemetry/teed/installed\r\n" | nc bitreich.org 70 DIR diff --git a/teed.8 b/teed.8 @@ -0,0 +1,39 @@ +.Dd August 14, 2023 +.Dt TEED 8 +.Os +.Sh NAME +.Nm teed +.Nd tee daemon +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION +.Nm +sets up two UNIX domain socket files: +"in" and "out". +From these files +.Nm +can multiplex multiple "in" and "out" connections. +.Sh EXIT STATUS +.Ex -std +.Sh EXAMPLES +Run +.Nm +as a daemon. +.Bd -literal +teed & +.Ed +.Pp +Read the data from the UNIX domain socket "out" and write it to stdout. +.Bd -literal +socat unix:out - +.Ed +.Pp +Read from stdin and write the data "aaa\en" to the UNIX domain socket "in". +.Bd -literal +echo aaa | socat - unix:in +.Ed +.Sh SEE ALSO +.Xr socat 1 , +.Xr tee 1 +.Sh AUTHORS +.An Christoph Lohmann Aq Mt 20h@r-36.net