[fpc-pascal] Popen

Carsten Bager carsten at beas.dk
Mon Jan 8 16:17:10 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

The FPC manual (REFERENCE FOR UNIT ´UNIX´) 32.3.20 dos not 
indicate this, (The code is a direct copy from the manual).

I have corrected it, but it did not change anything.

Carsten

Med venlig hilsen
Carsten Bager

BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk





More information about the fpc-pascal mailing list