有没有办法告诉bjobs
低密度脂蛋白命令使用更宽的列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
答案1
该-o
开关允许自定义输出格式(至少对于 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 a w
我通常使用:
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