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.
On success, the job file name is returned. On failure, it returns NULL and sets lsberrno to indicate the error.