[d986f2]: / shell_scripts / bpeek_wrapper.sh

Download this file

20 lines (12 with data), 361 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# wrapper around lsf-scheduler bpeek command writing bpeek to file and opening it.
# amend default output dir and editor as desired.
# positonal
# -arg #1 lsf job id
job_id="${1}"
out_dir=$HOME/lsf_peek_output
out_file="${out_dir}/${job_id}.out"
mkdir -p ${out_dir}
eval "bpeek ${job_id} > ${out_file}"
nano ${out_file}
#tail -F ${out_file}