[slurm-users] Forward arrows to stdin through srun?

Brian Andrus toomuchit at gmail.com
Fri Jun 28 03:03:03 UTC 2019


I think you need a pty instead of just running bash...

try:

srun --pty bash

Or get specific on what resources you need, eg:

srun --nodes=1 --exclusive --pty bash


Brian Andrus

On 6/27/2019 2:11 PM, Micael Carvalho wrote:
> Hello there,
>
> I am having trouble with arrow keys in srun.
> Example of command:
> $ srun -u bash
>
> After running this command, I get an interactive session.
> If I type anything there (like "test", "ls", or anything else), and 
> then press the left arrow (<-) to go back and edit something in the 
> middle, it just outputs the special characters.
>
> Example:
> $ trying to edit^[[D
>
> Is this something fixable? I am debugging python code in a cluster, 
> and the arrows could be really useful here... But I'm sort of lost. 
> Tried the readline package, and many others, but ultimately discovered 
> the problem is coming from srun, and not python.
>
> Thank you in advance !! :)
>
> Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190627/ebc14fe3/attachment.html>


More information about the slurm-users mailing list