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 in

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 https://gi

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 s

[fpc-pascal] executeprocess help

2014-03-26 Thread John Lee
This enables a process eg an .exe to be run without using cmd (unlike exec) and if so, I'd like to use it. Can anyone provide one or two simple example lines for using this, on windows. Below is definition in sysutils help. It explains what path & comline do, but doesn't really explain why one wou

Re: [fpc-pascal] ExecuteProcess

2005-07-29 Thread Michael Van Canneyt
On Thu, 28 Jul 2005, L505 wrote: > | I will check it, although I "prefer" a platform independent aproach. > > > Same .. if anyone knows of other ways to pipe, let us know. Use TProcess. Works currently on windows and unixes. See the Lazarus IDE sources for ways how to use it. Michael.

Re: [fpc-pascal] ExecuteProcess

2005-07-28 Thread Vincent Snijders
Darius Blaszijk wrote: I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this does not work. I keep getting a message like: "error resolving case of '>'" Is ExecuteProcess not capable o

Re: [fpc-pascal] ExecuteProcess

2005-07-28 Thread L505
| I will check it, although I "prefer" a platform independent aproach. Same .. if anyone knows of other ways to pipe, let us know. Lars ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] ExecuteProcess

2005-07-28 Thread Darius Blaszijk
> Have you checked out AssignStream. It works well.. might be available on *nix > only though. I will check it, although I "prefer" a platform independent aproach. Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] ExecuteProcess

2005-07-28 Thread L505
| I'm using ExecuteProcess to run a commandline application. This application | returns information to stdout. I have tried to pipe this to a file, but | unfortunately this does not work. I keep getting a message like: "error | resolving case of '>'" | Is ExecuteProcess not capable of handling pipe

[fpc-pascal] ExecuteProcess

2005-07-28 Thread Darius Blaszijk
I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this does not work. I keep getting a message like: "error resolving case of '>'" Is ExecuteProcess not capable of handling pipes, is ther