开发者

Avoid generating empty STDOUT and STDERR files with Sun Grid Engine (SGE) and array jobs

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?


No, there is no way to do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜