Version 3 (modified by dcesari@…, 16 years ago) (diff) |
---|
Submitting a job
server_name = pbs.pbs_default() c = pbs.pbs_connect(server_name) attropl = pbs.new_attropl(2) # Set the name of the job # attropl[0].name = pbs.ATTR_N attropl[0].value = "test" # Job is Rerunable # attropl[1].name = pbs.ATTR_r attropl[1].value = 'y' # A1.tsk is the job script filename # job_id = pbs.pbs_submit(c, attropl, "A1.tsk", 'NULL', 'NULL') e, e_txt = pbs.error() if e: print e,e_txt print job_id