... something similar to /dev/null, but that just blocks all bytes that are written to it?
What I need is a trick to hold an arbitrary executable in memory by blocking its output. Pipes don't seem to be usable, because the output gets written to a buffer first.
You can create a named pipe (fifo) using
mkfifo
. Writes to this type of special file will block until a process reads from it.In another session: