[torqueusers] specify job id
Coyle, James J [ITACD]
jjc at iastate.edu
Tue Jan 24 12:37:28 MST 2012
Hakeem,
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
QSUB_RC=$?
JID=`echo ${QSUB_RC} | sed -e 's/\.*$//' `
Then ${JID} can be used later.
E.g.
if you had not use -e and -o to name STDERR and STDOUT filenames, these output should be in
myjob.e${JID}
and
myjob.o${JID}
- 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
Hi,
Is there a way to specify job id when request a job?
Thanks
-------------- 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