<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
May be with a pipe | ?<br>
<p>Something like <br>
</p>
<pre class="moz-quote-pre" wrap="">mosquitto_sub -h 192.168.117.131 -F '@Y-@m-@d @H:@M:@S ; %t ; %p' -t '#' | SomePascalProgram
</pre>
<p>This way you'll receive the output of mosquitto_sub on the
standard input of SomePascalProgram.</p>
<p>I've tested locally on an Apache log with <br>
tail -f /var/log.apache2/access.log | grep http</p>
Le 23/10/2022 à 15:31, Bo Berglund via fpc-pascal a écrit :<br>
<blockquote type="cite"
cite="mid:i5dalhhkcadv6vfnmuiihrfpg0icq04gd4@4ax.com">
<pre class="moz-quote-pre" wrap="">What happens if the data in the AProcess output stream is less than my buffer
size, will it then stall until as many messages have arrived as will fill the
buffer?
</pre>
</blockquote>
<p></p>
<p>I think you can use<span class="n"> AProcess</span><span
class="o">.</span><span class="n">Output</span><span class="o">.</span>NumBytesAvailable
to avoid stalling and read just what is available :</p>
<p><a class="moz-txt-link-freetext" href="https://www.freepascal.org/docs-html/fcl/pipes/tinputpipestream.numbytesavailable.html">https://www.freepascal.org/docs-html/fcl/pipes/tinputpipestream.numbytesavailable.html</a><br>
</p>
<p><br>
</p>
<p></p>
</body>
</html>