[GE users] grid job name in qstat output

Reuti reuti at staff.uni-marburg.de
Wed Aug 29 16:01:07 BST 2007


Am 29.08.2007 um 16:29 schrieb david zanella:

> 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

Nope. But there is already a prepared script available for this purpose:

http://gridengine.sunsource.net/files/documents/7/8/status-1.2.tgz

-- Reuti

---------------------------------------------------------------------
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