[CentOS] Bash Question
jses27 at gmail.com
Thu Apr 8 16:36:10 UTC 2010
On Thu, 2010-04-08 at 15:57 +0000, Joseph L. Casale wrote:
> Hey guys,
> messing around with a snippet from a mailing list post,
> mkfifo -m 666 /var/spool/my_fifo
> exec 42<> /var/spool/my_fifo
> while true
> while read -t 5 data <&42
> echo "data is ($data)"
> echo "read again"
> What happens to this to invalidate the initial 'true' condition, it only runs
> for a short while?
No exit 0 status for sucess. Your while syntax is diff compared to what
should be used like
"while; true". It's only repetitive on exit 0 status.
More information about the CentOS