4

I am on a cluster equiped with IBM LSF job system.

I want to realize a feature, so that I can peek current output of every job I am running

So I write

for((i=2;i<=$(bjobs|grep RUN|wc -l)+1;i+=1)); do bpeek -f $(bjobs | awk '{print $1}'| head -n $i|tail -1);done

However, since bpeek enters into peeking mode, the loop is not gonna loop.

So I thought maybe I could kill bpeek at the end of each peak. However I found that PID of bpeek is not listed in ps -ef. So this seems not working.

Does anyone knows how to work around this?

user15964
  • 2,507
  • 2
  • 31
  • 57

0 Answers0