Changeset 356 for trunk/examples/new_interface.py
- Timestamp:
- 04/11/18 13:57:42 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/new_interface.py
r339 r356 34 34 node = p.getnode("r2n2", l) 35 35 36 print node.name37 print node.name, node['np']36 print(node.name) 37 print(node.name, node['np']) 38 38 39 39 sys.exit(0) … … 41 41 #nodes = p.getnodes(l) 42 42 for id in nodes: 43 print id43 print(id) 44 44 45 45 try: 46 print nodes[id].np47 print nodes[id].status.arch48 print nodes[id].status.uname49 print nodes[id].state46 print(nodes[id].np) 47 print(nodes[id].status.arch) 48 print(nodes[id].status.uname) 49 print(nodes[id].state) 50 50 except PBSError, detail: 51 print detail51 print(detail) 52 52 pass 53 53
Note: See TracChangeset
for help on using the changeset viewer.