in reply to named pipe question

are there things I should be aware of then working with named pipes?

The code you've provided should cover the above caveats though, so you should be fine. This node also has some good info on named pipes (and seems to cover a situation similiar to your own).
HTH

broquaint