NAME

LSF::JobInfo - get information about LSF jobs.

SYNOPSIS

use LSF::JobInfo;

use LSF::JobInfo PRINT => 1;

( $jobinfo ) = LSF::JobInfo->new( [ARGS] );

( $jobinfo ) = LSF::JobInfo->new( $job );

( $jobinfo ) = LSF::JobInfo->new( [JOBID] );

@jobinfo = LSF::JobInfo->new( -J => '/MyJobGroup/*');

( $jobinfo ) = LSF::JobInfo->new($job);

$jobinfo = $job->info;

... etc ...

DESCRIPTION

LSF::JobInfo is a wrapper arround the LSF 'bjobs' command used to obtain information about jobs. The hash keys of the object are LSF submission and control parameters. See the 'bjobs' man page for more information.

CONSTRUCTOR

new( [ARGS] || [JOBID] || $job );

($jobinfo) = LSF::JobInfo->new( [ARGS] || [JOBID] || $job );

Creates a new LSF::JobInfo object.

Arguments are the LSF parameters normally passed to 'bjobs' or a valid LSF jobid or LSF::Job object. Returns an array of LSF::JobInfo objects. Of course if your argument to new is a single jobid then you will get an array with one item. If you query for a number of jobs with the same name or path then you will get a list. In scalar context returns the number of jobs that match that criteria.

SEE ALSO

LSF, LSF::Job, bjobs

BUGS

Please report them. Otherwise... the parsing of the LSF output can fail if the job names have non-alphanumeric characters in them. You probably shouldn't do this anyway.

HISTORY

The LSF::Batch module on cpan didn't compile easily on all platforms i wanted. The LSF API didn't seem very perlish either. As a quick fix I knocked these modules together which wrap the LSF command line interface. It was enough for my simple usage. Hopefully they work in a much more perly manner.

AUTHOR

Mark Southern (mark_southern@merck.com)

COPYRIGHT

Copyright (c) 2002, Merck & Co. Inc. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)

1 POD Error

The following errors were encountered while parsing the POD:

Around line 113:

You forgot a '=back' before '=head1'