Avoid generating empty STDOUT and STDERR files with Sun Grid Engine (SGE) and array jobs
Posted
by vy32
on Stack Overflow
See other posts from Stack Overflow
or by vy32
Published on 2009-12-27T07:03:26Z
Indexed on
2010/03/17
2:31 UTC
Read the original article
Hit count: 391
I am running array jobs with Sun Grid Engine (SGE).
My carefully scripted array job workers generate no stdout and no stderr when they function properly. Unfortunately, SGE insists on creating an empty stdout and stderr file for each run.
Sun's manual states:
STDOUT and STDERR of array job tasks will be written into dif- ferent files with the default location .['e'|'o']'.' In order to change this default, the -e and -o options (see above) can be used together with the pseudo-environment-vari- ables $HOME, $USER, $JOB_ID, $JOB_NAME, $HOSTNAME, and $SGE_TASK_ID. Note, that you can use the output redirection to divert the out- put of all tasks into the same file, but the result of this is undefined.
I would like to have the output files suppressed if they are empty. Is there any way to do this?
© Stack Overflow or respective owner