ptee

create a directed graph of processes and pipes

Install

All systems
curl cmd.cat/ptee.sh
Debian Debian
apt-get install pipexec
Ubuntu
apt-get install pipexec
image/svg+xml Kali Linux
apt-get install pipexec
Windows (WSL2)
sudo apt-get update sudo apt-get install pipexec
Raspbian
apt-get install pipexec

pipexec

create a directed graph of processes and pipes

pipexec creates an arbitrary network (directed graph) of processes and pipes in between - even cycles are possible. It overcomes the short comings of shells that are typically only able to create non cyclic trees. pipexec also monitors all its child processes and is able to restart the whole network of processes and pipes if one crashes. Therefore pipexec can be used in SYSV-init or systemd configuration to run a network of processes. The package also contains two tools 'ptee' and 'peet' which are the piped version of the 'tee' and 'eet' (reverse tee) commands.