The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LSF::JobInfo - get information about LSF jobs.

SYNOPSIS

use LSF::JobInfo;

use LSF::JobInfo RaiseError => 0, PrintError => 1, PrintOutput => 0;

( $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.

INHERITS FROM

LSF

CONSTRUCTOR

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

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

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.

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.

SEE ALSO

LSF, LSF::Job, bjobs

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 111:

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