It's not done with reading form /dev/tty, sine satyakm also wants to supply data. And reading from and writing to the same device isn't something that I'd recommend a beginner to do himself, which is why I recommended using something that wraps that process for him/her.