> I am trying to use the "Popen" function in Read mode. > I first tried the example (---Write---) from the manual (see beneath). > The POpen gives an error 25 (Not a typewriter) but it looks like it works. > I try to do almost the same (---Read---)to read the output, but I cannot get > this to read > anything. As far as I can tell, the script is not executed. > Dos anybody have a hint.
I don't have time to test your program atm, but I can see directly that the program is wrong. You are only allowed to check errno if popen returns -1 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal