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];
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal