def torque_job(cmd, pollpath, name, queue):
 qsub_call = ('qsub -k oe -N %s -q %s' % ('MOTU', queue))
 to_submit = ('echo "%s; echo $? > %s" | %s' % (cmd, pollpath, qsub_call))
 return to_submit

def torque_job ( cmd , pollpath , name , queue ) : qsub_call = ( 'qsub -k oe -N %s -q %s' % ( 'MOTU' , queue ) ) to_submit = ( 'echo "%s; echo $? > %s" | %s' % ( cmd , pollpath , qsub_call ) ) return to_submit
wrap a cmd for job submission .