On Wed, 13 Jul 2011, David F. Skoll wrote:

On Wed, 13 Jul 2011 07:40:26 -0700 (PDT)
John Hardin <jhar...@impsec.org> wrote:

I took a quick look at the sources for jpegtopnm and could not see
anything that would return an error code of 2048. What OS is this on?

FuzzyOCR is returning $? as the "retcode", which is not the exit code.
It's the exit _status_, which is 256 * exit code.

...d'oh. I knew that, I just fergot. :)

The actual exit code is 8.  Perhaps that'll help you hunt it down.

#define ENOEXEC      8  /* Exec format error */

That doesn't sound kosher, as it's running successfully in manual testing.

And it isn't a non-executable file somewhere on a different PATH as the error message is talking about /usr/bin/jpegtopnm...

All I can think of at this point is permissions issues somehow.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  USMC Rules of Gunfighting #6: If you can choose what to bring to a
  gunfight, bring a long gun and a friend with a long gun.
-----------------------------------------------------------------------
 3 days until the 66th anniversary of the dawn of the Atomic Age

Reply via email to