[fpc-pascal] Popen
Marco van de Voort
marcov at stack.nl
Mon Jan 8 14:57:07 CET 2007
> 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
More information about the fpc-pascal
mailing list