Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-11

Handling TProcess Output (Pipe) "information by "information" and in Real Time ?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

T.Guilleminot

Hi,

I'd like to be able to run an external program (a kind of daemon) and then grab his output "information by information" and in REAL TIME. Then in the caller/main program I will test the output (with IF or CASE statements) and act accordingly.

If it seems possible to test on output I have no idea how to achieve this :
- "Format" the output (from called program) to make single operations ("information by information")
- To get output in real time. As per example
(http://wiki.lazarus.freepascal.org/Executing_External_Programs) output is returned and the end of called program. I'm not sure the other example (large file) is relevant too.

Does anyone have thoughts on this please ?

Thanks.
Tom