source: devel/submit.py @ 309

Last change on this file since 309 was 309, checked in by bas, 9 years ago

Checkin the pbs swig development files

File size: 305 bytes
Line 
1import pbs
2
3pbs_server = pbs.pbs_default ()
4pbsconn = pbs.pbs_connect (pbs_server)
5
6print pbsconn
7
8attrl = pbs.new_attropl(1)
9attrl[0].name = pbs.ATTR_N
10attrl[0].value = "test"
11
12task_id = pbs.pbs_submit(pbsconn, attrl, "A1.tsk", 'NULL', 'NULL')
13
14e, e_txt = pbs.error()
15if e:
16        print e,e_txt
17
18print task_id
Note: See TracBrowser for help on using the repository browser.