It sounds to me like lame is starting and immediately exiting. Do you have to specify something in the command-line options to tell it what filename to encode? It might be something like ``%s''. (I know nothing about AG; just taking a guess.)
_________________________
Bitt Faulk