[fpc-pascal] Linux - ExecuteProcess versus fpSystem

Tomas Hajny XHajT03 at hajny.biz
Fri Sep 9 13:48:42 CEST 2011


On Fri, September 9, 2011 13:40, Marco van de Voort wrote:
> In our previous episode, michael.vancanneyt at wisa.be said:
>>
>> You must remove the quotes around 'outputfile.org':
>>
>>   Status:=ExecuteProcess('/path/to/oggenc',['-Q','--output=outputfile.org','tempfile.wav']);
>
> While better, this is afaik not required per se, the executing binary can
> strip them also while doing cmdline parsing.  It doesn't matter for
> executeprocess.

Yes, the executing binary can do a lot, but the trouble is that it doesn't
expect that it should need to do that (and thus it probably doesn't do it)
since the Unix shell would probably strip these quotes _if_ the command is
started from shell. That is probably the whole reason why it fails for the
original poster right now.

Tomas





More information about the fpc-pascal mailing list