Re: [fpc-pascal] Question about tprocess from fpc

2025-01-30 Thread n7800 via fpc-pascal
You are reading the output incorrectly, this should be done in a loop:   https://wiki.lazarus.freepascal.org/Executing_External_Programs#Reading_large_output   To avoid doing this manually, use the "RunCommand":   https://wiki.lazarus.freepascal.org/Executing_External_Programs#(Process.)RunCommand

Re: [fpc-pascal] Question about tprocess from fpc

2025-01-24 Thread Marco van de Voort via fpc-pascal
Op 24-1-2025 om 15:10 schreef Terry A. Haimann via fpc-pascal: I recently tried to execute a sed command from Lazarus, but didn't receive any output. But when I imbedded the sed command in a script and then executed the script from tprocess, it worked fine. Why is this? I have run across s

[fpc-pascal] Question about tprocess from fpc

2025-01-24 Thread Terry A. Haimann via fpc-pascal
I recently tried to execute a sed command from Lazarus, but didn't receive any output. But when I imbedded the sed command in a script and then executed the script from tprocess, it worked fine. Why is this? I have run across similar issues from other Linux commands when trying to execute t

Re: [fpc-pascal] Question about TProcess

2007-05-10 Thread Darius Blaszijk
Thanks Vincent, I did not think of it as there are only about 30lines of output. It works now. Darius Vincent Snijders wrote: Darius Blaszijk schreef: The following piece of code is giving me headaches. When I add the option poUsePipes, the application starts and does not seem to do anyth

Re: [fpc-pascal] Question about TProcess

2007-05-10 Thread Vincent Snijders
Darius Blaszijk schreef: The following piece of code is giving me headaches. When I add the option poUsePipes, the application starts and does not seem to do anything else anymore. It just opens a commandline terminal and that is that. When I leave the option out the application actually starts

[fpc-pascal] Question about TProcess

2007-05-10 Thread Darius Blaszijk
The following piece of code is giving me headaches. When I add the option poUsePipes, the application starts and does not seem to do anything else anymore. It just opens a commandline terminal and that is that. When I leave the option out the application actually starts "make" and then crashes