B
bob_jeffcoat
Hi,
I'm trying to read the output and write the input of a process using
its StandardOutput/Input and I'd really like to check if the process
is waiting for input or whether it has output ready to be read. Is it
possible? It seems like a fairly simple thing to try and do but most
of the "read" functions I've tried seem to deadlock if there's nothing
to read due the process waiting for output. It's rubbish!
Even a simple "try for 100millieseconds and give up" would be ok, but
I can't see how to do that either.
any ideas?
Thanks
I'm trying to read the output and write the input of a process using
its StandardOutput/Input and I'd really like to check if the process
is waiting for input or whether it has output ready to be read. Is it
possible? It seems like a fairly simple thing to try and do but most
of the "read" functions I've tried seem to deadlock if there's nothing
to read due the process waiting for output. It's rubbish!
Even a simple "try for 100millieseconds and give up" would be ok, but
I can't see how to do that either.
any ideas?
Thanks