Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
FWIW, That array did the trick. Thanks again. But I'll study the wrapper in the near future. Op 25/08/2020 om 18:18 schreef Koenraad Lelong via fpc-pascal: Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my project. I

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the reply, I did know of that project. The thing is, at the moment I don't know how to implement that in my project. I'm still studying this. Op 25/08/2020 om 15:55 schreef Luca Olivetti via fpc-pascal: Not what you're asking, but did you try to send the messages yourself

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, Thanks for the suggestion I will try that array. Why I did it like that : I thought it an easy and fast way to enhance my project. I added the same value to rrd, the same way, i.e. a ExecuteProcess with a bunch of parameters. There it works, but no double quotes needed. LAter I will try

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Luca Olivetti via fpc-pascal
El 25/8/20 a les 14:31, Koenraad Lelong via fpc-pascal ha escrit: Hi, I'm extending an old daemon so it writes the data to MQTT, using mosquitto_pub. Not what you're asking, but did you try to send the messages yourself instead of using mosquitto_pub? I didn't try it, but there's

Re: [fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Karoly Balogh (Charlie/SGR) via fpc-pascal
Hi, On Tue, 25 Aug 2020, Koenraad Lelong via fpc-pascal wrote: > I'm extending an old daemon so it writes the data to MQTT, using > mosquitto_pub. > > To have a correct message (-m ...) I need to include double-quotes. But > it seems ExecuteProcess(exec,cmdline) splits the cmdline according some

[fpc-pascal] ExecuteProcess problem

2020-08-25 Thread Koenraad Lelong via fpc-pascal
Hi, I'm extending an old daemon so it writes the data to MQTT, using mosquitto_pub. To have a correct message (-m ...) I need to include double-quotes. But it seems ExecuteProcess(exec,cmdline) splits the cmdline according some rules if it's a single string. When I tried to do it in a single