View job output

The output from an LSF job is normally not available until the job is finished. However, LSBLIB provides lsb_peekjob() to retrieve the name of a job file for the job specified by jobId.

To get the job output and job error files, append .out or .err to the end of the base job file name from lsb_peekjob().

Only the job owner can use lsb_peekjob() to see job output.

char *lsb_peekjob(jobId)
LS_LONG_INT  jobId;                   Job ID

On success, the job file name is returned. On failure, it returns NULL and sets lsberrno to indicate the error.

The next call reuses the storage for the file name.