in reply to How to read in data with pipe characters
Your previous post is Read into stdin pipe characters
Also, you never want to use system, backticks, echo, and file redirection like that, its not a workaround