What you stated is precisely what I wanted to do, I am not really sure of how to do it, I have tried the while read line routine parsing the input of the variable from the end of file, but it was spewing out the worng feed back from a very good working script.
I have seeing it done a couple of places, but I just do nto know how.