[torqueusers] submitting a job (interactively) issue

Gareth.Williams at csiro.au Gareth.Williams at csiro.au
Thu Feb 9 16:04:45 MST 2012


> From: Hakeem Almabrazi [mailto:halmabrazi at idtdna.com] 
> Sent: Friday, 10 February 2012 8:33 AM
> To: Torque Users Mailing List
> Subject: [torqueusers] submitting a job (interactively) issue

> Hi,

> I have tried to submit a job using the option -I and I got the message 

> Qsub: waiting for job # to start
> Qsub: job # ready

> And that is it.

> If I qstat I got a message saying the job # is still "R" running .

> It looks like I have lack of understanding on how to use this option but here is my submit job request:

> >qsub -l nodes=1 -N jobName -I -v "some parameters" shellScript


> If I run the above request without  the -I option, it runs fine without any issue.

> Someone might ask the question, why I am running it "interactively"? 

> Well, I want to force the program which issued the request to wait for the result and do something with it after that.

> Thank you for your help.

Hi Hakeem,

For an interactive job you have two options:

1) don't supply a script - then you should get an interactive shell session on a compute node when the job starts like:

> qsub -I
qsub: waiting for job 421117.server_host to start
qsub: job 421117.server_host ready

Begin PBS Prologue Fri Feb 10 10:00:31 EST 2012 1328828431
Job ID:              421117.server_host
Username:            wil240
Group:               asc
Name:                STDIN
Resources:           neednodes=1,nodes=1,vmem=500mb,walltime=00:10:00
Queue:               normal
Nodes:               n001
First Node:          n001
Fri Feb 10 10:00:32 EST 2012
Directory: /home/asc/wil240
Fri Feb 10 10:00:32 EST 2012
wil240 at n001:~> uname -a
Linux n001 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux
wil240 at n001:~> logout

qsub: job 421117.server_host completed

2) use the -x option and supply a single command (not a script) - like:
wil240 at burnet-login:~> qsub -Ix 'uname -a'
qsub: waiting for job 421120.burnet-srv.idpx.hpsc.csiro.au to start
qsub: job 421120.burnet-srv.idpx.hpsc.csiro.au ready

Begin PBS Prologue Fri Feb 10 10:02:39 EST 2012 1328828559
Job ID:              421120.server_host
Username:            wil240
Group:               asc
Name:                none
Resources:           neednodes=1,nodes=1,vmem=500mb,walltime=00:10:00
Queue:               normal
Nodes:               n001
First Node:          n001
Fri Feb 10 10:02:39 EST 2012
Linux n001 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux

qsub: job 421120.server_host completed

I think you want the second option.

Gareth

ps. It would be better to send plain text email to a mailing list (not html).




 






More information about the torqueusers mailing list