| 1 | [[ShowPath]] |
| 2 | |
| 3 | = Batch_status data type = |
| 4 | |
| 5 | Batch_status is a structure which is defined in ''pbs_ifl.h'' as: |
| 6 | {{{ |
| 7 | #!C |
| 8 | struct batch_status { |
| 9 | struct batch_status *next; |
| 10 | char *name; |
| 11 | struct attrl *attribs; |
| 12 | char *text; |
| 13 | }; |
| 14 | }}} |
| 15 | |
| 16 | == Python Usage == |
| 17 | |
| 18 | This type is mostly use as return type. Here is an example how to use it: |
| 19 | {{{ |
| 20 | #!python |
| 21 | |
| 22 | nodes = pbs.pbs_statnode(c, "", "NULL", "NULL") |
| 23 | for node in nodes: |
| 24 | print node.name |
| 25 | for attrib in node.attribs: |
| 26 | print '%s = %s' %(attrib.name, attrib.value) |
| 27 | }}} |
| 28 | |
| 29 | |
| 30 | ''Note:'' That the next pointer definition is not used in the Python code. The module will automatically convert a C linked list to a Python list a vice versa |