in reply to Capturing input from pipe?

OK, that was a lot simpler than I thought but it works exactly like I want. Thanks a lot!