You might want to try the fileevent method of tk: $widget->fileevent(fileHandle,readable?,callback?)
This command is used to create file event handlers. A file event handler is a binding between a filehandle and a callback, such that the callback is evaluated whenever the filehandle becomes readable or writable