[torqueusers] error handling in perl-PBS

Garrick Staples garrick at usc.edu
Fri Jan 27 13:49:31 MST 2006

On Fri, Jan 27, 2006 at 11:33:36AM -0800, Alexander Saydakov alleged:
> Hi!
> It is not clear from man PBS how to handle errors.
> Suppose pbs_submit() did not return a job ID. How do I get the reason?

perl-PBS just does whatever the TORQUE libs do.  It's a rather direct

According to the pbs_submit manpage, it returns a NULL and sets
pbs_errno.  So in perl-PBS, check for undef and $PBS::pbs_errno.

Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20060127/cb10919f/attachment.bin

More information about the torqueusers mailing list