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

2019-07-01 Thread Ing. Gonzalo E. Arroyo
Hi! We have byobu you should try it! =)

*Ing. Gonzalo E. Arroyo - CPA Profesional*
IFIMAR - CONICET
*www.ifimar-conicet.gob.ar *

*Este mensaje es confidencial. Puede contener información amparada por el
secreto comercial. Si usted ha recibido este e-mail por error, deberá
eliminarlo de su sistema. No deberá copiar el mensaje ni divulgar su
contenido a ninguna persona. Muchas gracias.*
This message is confidential. It may also contain information that is
privileged or not authorized to be disclosed. If you have received it by
mistake, delete it from your system. You should not copy the messsage nor
disclose its contents to anyone. Thanks.


El lun., 1 jul. 2019 a las 0:52, Valerio Bellizzomi ()
escribió:

> On Sun, 2019-06-30 at 18:15 -0700, Chris Samuel wrote:
> > On Saturday, 29 June 2019 10:33:50 AM PDT Valerio Bellizzomi wrote:
> >
> > > no I am using the option --unbuffered to watch the output in a terminal
> > > window.
> >
> > I don't think this is a Slurm issue, you just need to make sure you're
> running
> > each of the srun's in a different terminal, whether that be an ssh
> session, an
> > xterm or using screen or tmux to multiplex terminals on a single session.
> >
> > All the best,
> > Chris
>
>
> Thanks, effectively tmux is a good solution.
>
>
>
>


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

2019-06-30 Thread Valerio Bellizzomi
On Sun, 2019-06-30 at 18:15 -0700, Chris Samuel wrote:
> On Saturday, 29 June 2019 10:33:50 AM PDT Valerio Bellizzomi wrote:
> 
> > no I am using the option --unbuffered to watch the output in a terminal
> > window.
> 
> I don't think this is a Slurm issue, you just need to make sure you're 
> running 
> each of the srun's in a different terminal, whether that be an ssh session, 
> an 
> xterm or using screen or tmux to multiplex terminals on a single session.
> 
> All the best,
> Chris


Thanks, effectively tmux is a good solution.





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

2019-06-30 Thread Chris Samuel
On Saturday, 29 June 2019 10:33:50 AM PDT Valerio Bellizzomi wrote:

> no I am using the option --unbuffered to watch the output in a terminal
> window.

I don't think this is a Slurm issue, you just need to make sure you're running 
each of the srun's in a different terminal, whether that be an ssh session, an 
xterm or using screen or tmux to multiplex terminals on a single session.

All the best,
Chris
-- 
  Chris Samuel  :  http://www.csamuel.org/  :  Berkeley, CA, USA






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

2019-06-29 Thread Valerio Bellizzomi
On Sat, 2019-06-29 at 16:27 +, Renfro, Michael wrote:
> Is this output file being written to a central file server that can be 
> accessed from your submit host? If so, start another ssh session from your 
> local computer to the submit host.
> 
> Is the output file being written to a location only accessible from the 
> compute node running your job? You might be able to ssh from the submit host 
> to the compute node (or maybe from your local computer to the compute node).
> 
> > On Jun 29, 2019, at 10:07 AM, Valerio Bellizzomi  wrote:
> > 
> >> On Sat, 2019-06-29 at 07:57 -0700, Brian Andrus wrote:
> >> 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
> >> connections)
> >> 
> >> 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.
> > 
> > Sorry, I am only trying to look at the output from my program, it is a
> > batch computation program that outputs some text line.
> > 
> > srun --pty does not open another window.
> > 
> 

no I am using the option --unbuffered to watch the output in a terminal
window.





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

2019-06-29 Thread Renfro, Michael
Is this output file being written to a central file server that can be accessed 
from your submit host? If so, start another ssh session from your local 
computer to the submit host.

Is the output file being written to a location only accessible from the compute 
node running your job? You might be able to ssh from the submit host to the 
compute node (or maybe from your local computer to the compute node).

> On Jun 29, 2019, at 10:07 AM, Valerio Bellizzomi  wrote:
> 
>> On Sat, 2019-06-29 at 07:57 -0700, Brian Andrus wrote:
>> 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
>> connections)
>> 
>> 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.
> 
> Sorry, I am only trying to look at the output from my program, it is a
> batch computation program that outputs some text line.
> 
> srun --pty does not open another window.
> 



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

2019-06-29 Thread Valerio Bellizzomi
On Sat, 2019-06-29 at 07:57 -0700, Brian Andrus wrote:
> 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 
> connections)
> 
> 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.

Sorry, I am only trying to look at the output from my program, it is a
batch computation program that outputs some text line.

srun --pty does not open another window. 




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

2019-06-29 Thread Valerio Bellizzomi
On Sat, 2019-06-29 at 16:48 +0200, 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.

ps: I would like to do it from a bash script. I have attepted to use
gnome-terminal to spawn a new window for each srun line but I get an
gnome protocol error, so I am searching another method.







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

2019-06-29 Thread Brian Andrus

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


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.







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

2019-06-29 Thread Valerio Bellizzomi
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.





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

2019-06-29 Thread Brian Andrus

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 ?








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

2019-06-29 Thread Valerio Bellizzomi
How it gets done normally ?