Need to check #? and PIPESTATUS http://www.mattryall.net/article.cgi?id=247