[fpc-pascal] Linux - ExecuteProcess versus fpSystem

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Sep 8 09:21:38 CEST 2011



On Wed, 7 Sep 2011, brian wrote:

> Reinforcing the subject, this is using Linux - to be specific, FPC 2.4.2-0 
> under 64 bit Mint 9.
>
> I'm trying to convert a large number of MP3 files to Ogg Vorbis.
>
> This is a two step process, first I run mpg321 to switch them to a .wav file, 
> then oggenc to convert to a .ogg
>
> What's driving me crazy is that running the two commands via ExecuteProcess 
> does the first step OK, but oggenc fails with an exit code of 1, operation 
> not permitted.

try

strace -o logfile.txt  -f yourprogram

It will emit all system calls. Near to the end, there should be one that
fails with 'operation not permitted'.  (assuming your program exits straight
away after the failed command)

This way you'll know the actual cause of the failure.

Michael.



More information about the fpc-pascal mailing list