On 2014-08-16, Clint Pachl <pa...@ecentryx.com> wrote:

>> # cd /tftpboot
>> # mkfifo etc/random.seed
>> # while true; do dd if=/dev/random count=1 >etc/random.seed 2>/dev/null; 
>> done &
>
> # cd /tftpboot
> # mkfifo test.seed
> # while :; do dd if=/tmp/counter of=test.seed 2>/dev/null; done &

Careful!

"dd ... >fifo" (O_WRONLY) blocks until there is a reader.

By contrast, "dd ... of=fifo" (O_RDWR) does not block and if you
run it in a loop, you'll end up with a busy loop.

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to