[GE users] grid job name in qstat output

david zanella zanella at mayo.edu
Wed Aug 29 15:29:04 BST 2007


Does anyone know how to widen the name field in qstat output. Scoured the documents and man page with no luck.


job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
-----------------------------------------------------------------------------------------------------------------
 123339 0.56000 Merlin_LDm fridley      r     08/28/2007 13:01:16 Long at aja.mayo.edu                  1        
 123128 0.55000 Sim.c1.ped ecarlson     r     08/25/2007 15:16:47 Long at blindpig.mayo.edu             1        
 123127 0.55000 Sim.c1.ped ecarlson     r     08/25/2007 15:16:32 Long at boris.mayo.edu                1        
 123188 0.55000 Sim.c10.pe ecarlson     r     08/27/2007 15:56:25 Long at crow.mayo.edu                 1        
 123292 0.56000 Merlin_LDm fridley      r     08/27/2007 09:00:16 Long at dastardly.mayo.edu            1        
 123414 0.55001 Sim.c14.pe mcdonnel     r     08/29/2007 07:37:11 Long at droopy.mayo.edu               1        
 123164 0.55000 Sim.c8.ped ecarlson     r     08/27/2007 00:22:38 Long at muttley.mayo.edu              1        
 123129 0.55000 Sim.c1.ped ecarlson     r     08/25/2007 15:16:47 Long at natasha.mayo.edu              1        

Ended up writing a short script for the user requesting this that would just do a qstat -j on each job number, but
I'd really prefer that qstat just widen the field...


#!/bin/ksh
export QSTAT=/opt/tools/sge6/bin/sol-sparc64/qstat
echo "Job number     Job Name"
echo "----------     --------"
  $QSTAT  | tail +3 | awk '{print $1 }' | while read JOB
  do
        /usr/bin/echo  "$JOB       \c"
        $QSTAT  -j $JOB | grep  job_name | awk '{print $2}'
  done
fi



Thanks! 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list