[fpc-pascal] Linux - ExecuteProcess versus fpSystem
anton.txt at gmail.com
Fri Sep 9 10:09:31 CEST 2011
> I suspect that the oggenc command is failing
> because TProcess behind the scenes is splitting
> --output="outputfile.ogg" into two params.
Yes, indeed. It is also mentioned on the WIKI:
"Parameters which contain spaces (Replacing Shell Quotes)"
While the documentation on TProcess and fpExecV is
If the command to be executed or any of the
arguments contains whitespace (space, tab
character, linefeed character) it should be
enclosed in single or double quotes.
In case ComLine is a single string, it will
be split out in an array of strings, taking
into account common whitespace and quote
More information about the fpc-pascal