[lazarus] IPC question...

Marco van de Voort marcov at stack.nl
Fri May 2 07:16:06 EDT 2003


> > On Fri, 2003-05-02 at 04:26, Mattias Gaertner wrote:
> > >On Fri, 2 May 2003 12:21:52 +0200 (CEST)
> > >marcov at stack.nl (Marco van de Voort) wrote:
> > > > Is there a way to do this in Object Pascal under Linux... or is using a
> > > > temporary text file the best approach?
> > > 
> > > Linux unit, popen, assignpipe etc, check the text and the examples.
> 
> That's exactly what I was looking for... thank you!
> 
> > What about TProcess?
> 
> Thanks for pointing it out. Using TProcess might be an even better
> design approach then the one I was considering. There's Input, OutPut
> and StdErr public properties and a very complete set of TProcessOptions
> for setting up pipes and suppressing output to the console!
> 
> Looks like I'll be spending the next hour writing some test code! :)

IIRC TProcess is based on the same functions in the Linux unit, so it should work too.






More information about the Lazarus mailing list