Re: [Tutor] Not getting what execl() should be doing...

2005-06-07 Thread Alan G
> I'm trying to call up flac's encoder from a Python program. I believe I > should be doing it ok, but I get completely different results when doing > it by hand and from the python script. Here's the command line: > > $/usr/bin/flac --endian=little --channels=2 --sign=signed --bps=16 > --sample-ra

Re: [Tutor] Not getting what execl() should be doing... OK I GOT IT

2005-06-07 Thread Hugo González Monteverde
Just replying to myself because I am extremely dumb, so maybe it will help someone along the way if the same thing happens. I forgot to include argv[1], which is basically the same as the name of the file to be run. So: os.execl(tw_comppath, tw_comppath, "--endian=little", "--channels=2", "--sig

[Tutor] Not getting what execl() should be doing...

2005-06-07 Thread Hugo González Monteverde
Hi all, I'm trying to call up flac's encoder from a Python program. I believe I should be doing it ok, but I get completely different results when doing it by hand and from the python script. Here's the command line: $/usr/bin/flac --endian=little --channels=2 --sign=signed --bps=16 --sample-r

[Tutor] Not getting what execl() should be doing...

2005-06-07 Thread Hugo González Monteverde
Hi all, I'm trying to call up flac's encoder from a Python program. I believe I should be doing it ok, but I get completely different results when doing it by hand and from the python script. Here's the command line: $/usr/bin/flac --endian=little --channels=2 --sign=signed --bps=16 --sample-r

[Tutor] Not getting what execl() should be doing...

2005-06-07 Thread Hugo González Monteverde
Hi all, I'm trying to call up flac's encoder from a Python program. I believe I should be doing it ok, but I get completely different results when doing it by hand and from the python script. Here's the command line: $/usr/bin/flac --endian=little --channels=2 --sign=signed --bps=16 --sample-r