On 02/13/2011 12:44 AM, Platonides wrote:
-j join
Declares if the standard error stream of the job will be merged with the standard output stream of the job. An option argument value of oe directs that the two streams will be merged, intermixed, as standard output. An option argument value of eo directs that the two streams will be merged, intermixed, as standard error.
If the join argument is n or the option is not specified, the two streams will be two separate files.
Note that you can pass the parameter to SGE inside the script, too.
Ah, yes, I'd seen that. In fact, I'm using it. What I don't recall seeing mentioned anywhere I looked was that things printed to stdout would be included in the job completion e-mail.
(In fact, even you didn't say so out right in your message, you just seemed to imply it. And I haven't tested it, so I'm not going to swear it's even true.)
In fact, the man page would seem to imply that it isn't:
If the -o option is not specified, the default file name for the standard output stream will be used. The default name has the following form: job_name.osequence_number where job_name is the name of the job, see -N option, and sequence_number is the job number assigned when the job is submitted.