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
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
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
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
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
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