Get CWD bjobs in LSF environment
1 answer
If you are using the latest LSF (9.1.2+ I suppose) you can use the option -o
bjobs
to customize the output of the short form bjobs to give you each CWD job on a single line:
$ bjobs -o 'jobid exec_cwd' 5950
JOBID EXEC_CWD
5950 /home/squirrel/cwd
If you are using an older version of LSF, the only real option is to parse the long form bjobs.
The option -UF
for bjobs
will display the same output in the parameter -l
, but unformatted. This will basically accept all those work events that are currently split across many lines and display each one on a single line for easier parsing.
+2
source to share