How can Icheck the pipes before reading 
Author Message
 How can Icheck the pipes before reading


:Keywords:
:
:       Is tehre anyway to check the pipe before actually reading
:       it? So if there is nothing on the pipe, the process will
:       not hang.

Using perl's select() is probably most probably the most portable.

There are various FIONBIO type ioctl()s you could perform as well.

--tom
--

    "You can only measure the size of your head from the inside." --Larry Wall



Mon, 28 Apr 1997 20:22:10 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How can Icheck the pipes before reading

2. parsing canned response

3. question about canned perl script

4. Troubles with a Canned script

5. canned reply script

6. canned reply??

7. canned replies

8. Final read from pipe (long running process) hangs

9. Reading and writing to a pipe.

10. Reading from an input pipe?

11. open pipe with read and write?

12. reading stdout/stderr using pipes

 

 
Powered by phpBB® Forum Software