IBM

lsb_readjobinfo

Returns the next job information record in mbatchd.

lsb_readjobinfo reads the number of records defined by the more parameter. The more parameter receives its value from either lsb_openjobinfo or lsb_openjobinfo_a. Each time lsb_readjobinfo is called, it returns one record from mbatchd. Use lsb_readjobinfo in a loop and use more to determine how many times to repeat the loop to retrieve job information records.

#include <lsf/lsbatch.h>
#include <time.h>
#include <lsf/lsf.h>

struct jobInfoEnt *lsb_readjobinfo(int *more)

Parameters:
*more Number of job records in the master batch daemon.
Data Structures:
jobInfoEnt
jobExternalMsgReply
jRusage
pidInfo
reserveItem
submit
Define Statements:
job_states
jobgroup_counterIndex
group_nodetypes
Returns:
struct jobInfoEnt *:A pointer to job information entry.
Function was successful.

NULL
Function failed.

Errors:
If there are no more records, then lsberrno is set to LSBE_EOF.
Equivalent line commands:
none
Files:
$LSB_CONFDIR/cluster_name/configdir/lsb.queues
See also:
lsb_openjobinfo

lsb_openjobinfo_a

lsb_closejobinfo

lsb_hostinfo

lsb_pendreason

lsb_queueinfo

lsb_suspreason



     
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.