Changeset 134


Ignore:
Timestamp:
10/10/06 11:29:08 (18 years ago)
Author:
bas
Message:

examples/pbsmon.py, examples/rack_pbsmon.py, examples/set_property.py:

Replaced:

pbs.pbs_geterrmsg(con)

by:

errno, text = pbs.error()
print errno, text

Location:
trunk/examples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/pbsmon.py

    r67 r134  
    104104  con = pbs.pbs_connect(pbs_server)
    105105  if con < 0:
    106    print  pbs.pbs_geterrmsg(con)
    107    sys.exit(1)
     106     errno, text = pbs.error()
     107     print errno, text
     108     sys.exit(1)
    108109
    109110  # We are only interested in the state and jobs of a node
  • trunk/examples/rack_pbsmon.py

    r67 r134  
    4949        con = pbs.pbs_connect(pbs_server)
    5050        if con < 0:
    51                 print pbs.pbs_geterrmsg(con)
     51                errno, text = pbs.error()
     52                print errno, text
    5253                sys.exit(1)
    5354
  • trunk/examples/set_property.py

    r37 r134  
    66#
    77# CVS info:
    8 # $Id: set_property.py,v 1.1 2002/02/27 14:35:51 sscpbas Exp $
     8# $Id$
    99#
    1010#
     
    3030
    3131  if r > 0:
    32     print r, ";", pbs.pbs_geterrmsg(con)
     32    print r, ";"
     33    errno, text = pbs.error()
     34    print errno, text
    3335
    3436main()
Note: See TracChangeset for help on using the changeset viewer.