using `read` was failing out this script.

I'm not sure why,   it used to work!    This is on a Ubuntu 12.04 box with the backported raring kernel ( 3.8 ).    

some troubleshooting here - https://gist.github.com/paulczar/ef3da2df128ae2fccda5