You can also close tee stdout output by writing to /dev/full
echo 'hello world' | tee aa bb cc >/dev/full
or by closing standard output.
echo 'hello world' | tee aa bb cc >&-
However, remember that you will receive either tee: standard output: No space left on device or tee: standard output: Bad file descriptor invalid tee: standard output: Bad file descriptor warnings tee: standard output: Bad file descriptor .
Jirka
source share