As someone else already mentioned, using select is another solution. All solution amount to the fact the input and output to the process are interleaved. -- Piet van Oostrum <piet at cs.uu.nl> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum at hccnet.nl