Le 23/10/2022 à 22:50, Jean SUZINEAU via fpc-pascal a écrit :

This way you'll receive the output of mosquitto_sub on the standard input of SomePascalProgram.

A very small example for SomePascalProgram for  use with pipe, reading on standard input and writing on standard output :

var
   s: String;
begin
     repeat
           readln( s);
           writeln( s);
     until false;
end.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to