[fpc-pascal] pipe question

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 2 17:38:34 CEST 2006


On 2 aug 2006, at 17:33, Adam Naumowicz wrote:

> Is there a way to launch an external command, feed its input and  
> catch its output on Unix? AFAIK POpen allows to get hold of the  
> input or output, but not both - or am I missing something? Of  
> course, one could open a temporary file to store the command's  
> input or output and then redirect,
> but it's not what I need.

See http://wiki.lazarus.freepascal.org/index.php/ 
Executing_External_Programs

(in particular the section 'Example of "talking" with aspell process'  
at the bottom)


Jonas



More information about the fpc-pascal mailing list