in reply to How to Test For Empty Piped Input

Thank you for your answers. -t STDIN ... is what I was missing. Working great now! Thanks again.

"It's not how hard you work, it's how much you get done."