in reply to Re^2: Returning a bad status back to the parent UNIX process
in thread Returning a bad status back to the parent UNIX process

I'm not following 100% (more code would be useful). But I think you should print errors to STDERR and in your calling script (or cmdline invoke), redirect STDOUT and STDERR to different files.

-derby
  • Comment on Re^3: Returning a bad status back to the parent UNIX process