pipectl(1) | General Commands Manual | pipectl(1) |
NAME¶
pipectl - a simple named pipe management utility
SYNOPSIS¶
pipectl [-h,-o,-i,-n N,-p P,-f,-l]
DESCRIPTION¶
pipectl is a tool to create and manage short-lived named pipes that can be used to feed stdin to a longer-lived program from elsewhere in the system without needing a complex IPC mechanism such as UNIX domain sockets.
pipectl is intended to be used in pairs, one call to pipectl opens the pipe (-o) and feeds it to a process, and all others with the same name or path will write to the stdin of that process:
$ echo "do-the-thing --color red" | pipectl -i
$ echo "quit" | pipectl -i
The daemon process process will never observe an EOF on its stdin. pipectl will instead block until another input pipe (-i) is openend and will then feed the stdin of that process to the daemon process asynchronously.
When the daemon process exits or closes its stdin, pipectl will clean up and remove the created named pipe automatically.
OPTIONS¶
-h, --help
-o, --out
-i, --in
-n N, --name N
-p P, --path P
-f, --force
-l, --lock
PATHS¶
By default, pipectl will create the named pipe in a temporary directory (TMP). The first available directory of these will be used:
The resulting path of the named pipe is as follows:
default
with --name NAME
with --path PATH
where UID is the real user id of the pipectl process (see getuid(3)).
AUTHORS¶
Maintained by Ferdinand Bachmann <theferdi265@gmail.com>. More information on pipectl can be found at <https://github.com/Ferdi265/pipectl>.
SEE ALSO¶
pipectl(1) mkfifo(1) flock(2) getuid(3)
2024-03-23 |