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