为LSF bjob​​s命令设置JOB_NAME列宽

有没有办法告诉bjobs LSF命令为JOB_NAME使用更宽的列。 例如,而不是

 JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME 12345678 MrFooz RUN some_queue src_box exec_box1 *eat_job Aug 20 08:40 

我希望能够看到这一点

 JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME 12345678 MrFooz RUN some_queue src_box exec_box1 my_great_job Aug 20 08:40 

-o开关允许自定义输出格式(至less对于LSF版本9.1.1.1)。 从手册页:

  -o "field_name[:[-][output_width]] ... [delimiter='character']" Sets the customized output format. * Specify which bjobs fields (or aliases instead of the full field names), in which order, and with what width to display. * Specify only the bjobs field name or alias to set its output to unlimited width and left justification. * Specify the colon (:) without aw 

我通常使用:

 bjobs -o "JOBID:10 SUBMIT_TIME:13 USER:5 STAT:5 QUEUE:6 EXEC_HOST:20 JOB_NAME" 

所以这个输出是:

 JOBID SUBMIT_TIME USER STAT QUEUE EXEC_HOST JOB_NAME 12345678 Oct 30 08:34 me RUN long 4*machine1 really_long_jobname_can_go_on_forever 12345679 Oct 30 08:31 me RUN long 8*machine2 short_name