[slurm-users] spawning a new terminal for each srun

Brian Andrus toomuchit at gmail.com
Sat Jun 29 14:57:07 UTC 2019

I believe you are referring to an interactive terminal window.

You can do that with srun --pty bash

Windows themselves are not handled by slurm at all. To have multiple 
windows is a function of your workstation. You would need multiple 
connections to the cluster (eg: multiple ssh windows with multiple ssh 

In each ssh session, execute 'srun --pty' and you will have an 
interactive session on the cluster. You would, of course, need any other 
options for partitions, timelimit, etc.

That being said, this is usually NOT the way to approach a solution via 
a cluster. Clusters are meant to be something that does all the work for 
you while you are away (hence the batch concept). You likely want to 
look at getting your code to run without human interference and send it 
off to do so.

Brian Andrus

On 6/29/2019 7:48 AM, Valerio Bellizzomi wrote:
> On Sat, 2019-06-29 at 07:36 -0700, Brian Andrus wrote:
>> A little more details of what you are trying to do would help.
>> multiple srun statements with --pty options will spawn multiple
>> terminals. Just like running bash multiple times, if you do it within
>> the same terminal it will create a terminal within a terminal.
>> So, I would ask: what are you trying to do and we may be able to advise
>> the best way to accomplish it.
>> Brian Andrus
>> On 6/29/2019 12:53 AM, Valerio Bellizzomi wrote:
>>> How it gets done normally ?
> I would like to open a new terminal window for each srun job so that
> each job has its own terminal window.

More information about the slurm-users mailing list