English 中文(简体)
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.

问题回答

暂无回答




相关问题
Writing to stdout from within a Microsoft VBA macro

I m using Python (and the Win32 extensions) to execute macros in an Excel spreadsheet via the COM interface, as shown below: import win32com.client o = win32com.client.Dispatch("Excel.Application") o....

How can I implement tee programmatically in C?

I m looking for a way in C to programmatically (ie, not using redirection from the command line) implement tee functionality such that my stdout goes to both stdout and a log file. This needs to ...

Python, C: redirected stdout fires [Errno 9]

I try to log all the output of a program written in Python and C. However, printing from Python causes IOError: [Errno 9] Bad file descriptor Please, does anyone know what the problem is and how to ...

热门标签