On 11/20/2015 03:35 PM, Jirka Hladky wrote:
> I have tried two versions of the main command (one with >/dev/full, other one
> with >&-).
>
> cat /dev/zero | head -c500M | (/dev/shm/AAA/coreutils-8.24/src/tee -p
> $d/fifo1 $d/fifo2 $d/fifo3 $d/fifo4 >/dev/full )
> 2>&1 | tee $d/run.log &
> and
> cat /dev/zero | head -c500M | (/dev/shm/AAA/coreutils-8.24/src/tee -p
> $d/fifo1 $d/fifo2 $d/fifo3 $d/fifo4 >&- ) 2>&1 |
> tee $d/run.log &
>
> Both of them are working fine, except that following messages are emitted:
>
> tee: standard output: No space left on device
> tee: standard output: Bad file descriptor
I'm not convinced that a new --no-stdout option is warranted:
why not simply redirect stdout to the last fifo?
cat /dev/zero | head -c500M \
| (/dev/shm/AAA/coreutils-8.24/src/tee -p \
$d/fifo1 $d/fifo2 $d/fifo3 > $d/fifo4 ) 2>&1 \
| > tee $d/run.log &
Have a nice day,
Berny