hmm,
is /root/script/input a file?
I think you wanted echo and not cat..
and you seldom need cat ( do a websearch for "useless cat" or "useless use of cat"
anyway, even with echo it won't work, due to the pipe involking a subshell
try this
Code:
done <<< /root/script/input
<<< is passing what follows to stdin, it could be the output of a subshell
example
Code:
done <<< $(echo /root/script/input)
but as you will see, no need for that subshell in this case