Skip to content

Commit

Permalink
Corrected output of sjeff. squeue truncates long usernames which was …
Browse files Browse the repository at this point in the history
…causing a username lookup failure. New method for collecting for username/uid was implemented.
  • Loading branch information
jbednasz committed May 18, 2020
1 parent ff5164c commit 437f987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/sjeff
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ for job in $jobList; do
elif [ "$njobs" != "1" ]; then
:
else
user=`echo $jobInfo | awk '{ print $4 }'`
uid=`id -u $user`
#user=`echo $jobInfo | awk '{ print $4 }'`
user=`squeue -h $@ --job=3093131 --state='R' 2>/dev/null -o %u | grep -v CLUSTER`
#uid=`id -u $user`
uid=`squeue -h $@ --job=3093131 --state='R' 2>/dev/null -o %U | grep -v CLUSTER`
nodelist=`echo $jobInfo | awk '{ print $8 }'`
nodelist=`nodeset -e $nodelist | tr ' ' ','`

Expand Down

0 comments on commit 437f987

Please sign in to comment.