[fpc-pascal] Why does RunCommand not produce the correct output?

Jean SUZINEAU jean.suzineau at wanadoo.fr
Mon May 1 18:14:15 CEST 2023


I don't have an example at hand but I think you should run a bash 
interpreter, something like :

RunCommand('/bin/bash', ['-c', ListCmd], OutData)

but I'm not 100% sure.
There is a good documentation at:
https://wiki.freepascal.org/Executing_External_Programs

May be you need to split your command in several calls and use

AProcess.Options  :=  [poUsePipes];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230501/5bcb2349/attachment.htm>


More information about the fpc-pascal mailing list