[fpc-pascal] fpsystem output

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jan 15 14:01:30 CET 2013


On 15 Jan 2013, at 13:48, Rainer Stratmann wrote:

> This is one thing.
> Another thing are the error messages from freepascal which behave  
> the same
> then.
> And other output messages (for example dhcp service programs).

Use TProcess to execute external programs and capture their output.  
You can then write it using the regular write/writeln routines, which  
work correctly with the crt unit. See http://wiki.freepascal.org/Executing_External_Programs#TProcess 
  for help.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freepascal.org/lists/fpc-pascal/attachments/20130115/e7691a92/attachment.htm


More information about the fpc-pascal mailing list