LSF - A perl API built on top of the LSF command line tools
use LSF; use LSF RaiseError => 1, PrintError => 1, PrintOutput => 1;
NOTE: FOR THESE MODULES TO WORK IT IS ESSENTIAL THAT YOU INCLUDE THE LSF COMMAND LINES IN YOUR PATH.
This is the base class of the LSF suite of modules. 'use LSF' will also preload all of the LSF modules at one time. Currently this includes:
LSF::Job LSF::JobHistory LSF::JobGroup LSF::Queue LSF::JobManager
Two error reporting strategies are available and can be set globally via the 'use LSF' statement or individually in each of the LSF modules. By setting the 'RaiseError' directive to true, or by using the RaiseError class method, the LSF modules will die on error, otherwise they will return false, setting $? to the exit value and $@ to the stderr of the LSF command line. Additionally the printing of LSF command line stdout and stderr can be controlled via the 'PrintOutput' and 'PrintError' directives or class methods of the same names. Defaults are as above.
For more information on any of these modules, please see its respective documentation.
Returns the LSF version string
Controls whether LSF command line errors will be thrown. The default is FALSE. When called with no arguments returns the current value.
Controls printing to STDERR the stderr of the LSF command line. The default is TRUE. When called with no arguments returns the current value.
Controls printing to STDOUT the stdout of the LSF command line. The default is FALSE. When called with no arguments returns the current value.
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.
Mark Southern (email@example.com)
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)