[slurm-users] Forward arrows to stdin through srun?
toomuchit at gmail.com
Fri Jun 28 03:03:03 UTC 2019
I think you need a pty instead of just running bash...
srun --pty bash
Or get specific on what resources you need, eg:
srun --nodes=1 --exclusive --pty bash
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.
> $ 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...
More information about the slurm-users