Hi, I'm the system admin for a AlphaServer running Digital Unix 4.0d. We noticed that some of our scripts seemed to 'hang' periodically for no reason. After experimenting, I determined that 'tee' was not displaying a prompt for input from the piped application. I thought that it was a flaw in the Digital Unix application so I downloaded the GNU utilities to see if that worked better. Alas, I'm now writing to you. I've tried modifying the code to prevent buffering of the stdin (from the 'read' function) by using 'getc' and 'putc'. This also didn't work, and I've exhausted my feeble C abilities. The prompt is being buffered somewhere because it gets written to the TEE'd file when I provide input. That is, unless I CTRL-C. Then nothing. In neither case does it get printed to STDOUT. Any ideas? ***************************************** Thomas E. Summers Michigan Bureau of State Lottery (517) 335-5745 *****************************************
