Bash Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hey guys,
messing around with a snippet from a mailing list post,


#!/bin/bash

mkfifo -m 666 /var/spool/my_fifo
exec 42<> /var/spool/my_fifo

while true
do
        while read -t 5 data <&42
        do
                echo "data is ($data)"
        done
        echo "read again"
done



What happens to this to invalidate the initial 'true' condition, it only runs
for a short while?

Thanks!
jlc
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux