>From "Stream & input/Output functions"|"PIPE": 1. If I specify READ WATCH then according to the help "If at least one byte can be read from the pipe, then the event handler File_Read() is called." but what is the name of event handler. Surely it cant be "File_Read"?
2. According to the first example, it opens a pipe FOR INPUT. Surely this is incorrect. 3. (Not help related) If I want to catch output from a shelled command then what order to I have to do things? I am trying to use two pipes to communicate with a gnuplot process, one to send commands and one to catch any error output. hGPpipe = Pipe "/tmp/gnuplotFIFO1" For Write hGPstdout = Pipe "/tmp/gnuplotFIFO2" For Read Watch hGPproc = Shell "gnuplot < /tmp/gnuplotFIFO1 > /tmp/gnuplotFIFO2" Sending commands by writing to hGPpipe works OK (sort of, there are instances of junk getting in there.) but I can't figure out how to catch the output? tia Bruce ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user