Thanks for the pipe example, and all the advice in this thread. I should be able to work that into my existing code without too much difficulty. I'm looking forward to trading backticked system calls fed through regular expressions for something more portable and robust.