[torqueusers] specify job id

Coyle, James J [ITACD] jjc at iastate.edu
Tue Jan 24 12:37:28 MST 2012


Is there a reason you want the jobid to be something specific?
The only thing that I can think of is to use this after the fact to pick up the
output filenames when you have not used -e and -o
(or to keep track of it for issuing later Torque commands like
qdel or qstat. )

This can be done for a jobscript myjob (in sh , ksh  or bash) via:

qsub myjob
JID=`echo ${QSUB_RC} | sed -e 's/\.*$//' `

Then  ${JID}  can be used later.

if you had not use -e and -o to name STDERR and STDOUT filenames, these output should be in


-          Jim

James Coyle, PhD
High Performance Computing Group
 Iowa State Univ.
web: http://jjc.public.iastate.edu/<http://www.public.iastate.edu/~jjc>

From: torqueusers-bounces at supercluster.org [mailto:torqueusers-bounces at supercluster.org] On Behalf Of Hakeem Almabrazi
Sent: Tuesday, January 24, 2012 10:08 AM
To: torqueusers at supercluster.org
Subject: [torqueusers] specify job id


Is there a way to specify job id when request a job?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20120124/f1983292/attachment.html 

More information about the torqueusers mailing list