IBM

lsb_peekjob

Returns the base name of the file related to the job ID

lsb_peekjob retrieves the name of a job file.

Only the submitter can peek at job output.

The storage for the file name will be reused by the next call.

Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file. The caller is responsible for freeing the memory allocated for the job output file

#include <lsf/lsbatch.h>

char * lsb_peekjob (LS_LONG_INT jobId)

Parameters:
jobId The job ID that the LSF system assigned to the job. If a job in a job array is to be returned, use the array form jobID[i] where jobID is the job array name, and i is the index value.
Data Structures:
none
Define Statements:
none
Returns:
char *:Name of job Output File.
Function was successful.

NULL
Function failed.

Errors:
If the function fails, lsberrno is set to indicate the error.
Equivalent line command:
bpeek
Files:
${LSF_ENVDIR:-/etc}/lsf.conf
See also:
none


     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.