- Timestamp:
- 04/28/10 10:47:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/set_property.py
r134 r235 19 19 sys.exit(1) 20 20 21 if len(sys.argv) < 2: 22 print "Usage: set_property.py <hostname>" 23 sys.exit(1) 24 25 hostname = sys.argv[1] 26 21 27 con = pbs.pbs_connect(pbs_server) 22 28 23 29 attrop_l = pbs.new_attropl(1) 24 attrop_l[0].name = ' properties'30 attrop_l[0].name = 'note' 25 31 attrop_l[0].value = 'set_something_useful' 26 attrop_l[0].op = pbs. INCR32 attrop_l[0].op = pbs.SET 27 33 28 34 r = pbs.pbs_manager(con, pbs.MGR_CMD_SET, pbs.MGR_OBJ_NODE, 29 "e2", attrop_l, 'NULL')35 hostname, attrop_l, 'NULL') 30 36 31 37 if r > 0:
Note: See TracChangeset
for help on using the changeset viewer.