<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 15 Jan 2013, at 13:48, Rainer Stratmann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">This is one thing.<br>Another thing are the error messages from freepascal which behave the same<span class="Apple-converted-space"> </span><br>then.<br>And other output messages (for example dhcp service programs).<br></span></span></blockquote></div><br><div>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 <a href="http://wiki.freepascal.org/Executing_External_Programs#TProcess">http://wiki.freepascal.org/Executing_External_Programs#TProcess</a> for help.</div><div><br></div><div><br></div><div>Jonas</div></body></html>