Discussion:
Add reference to --pty option in FAQ #12 ?
Jens Dreger
2014-06-11 16:46:29 UTC
Permalink
Hi!

After some struggeling with FAQ #12:

12. How can I get shell prompts in interactive mode?
srun -u bash -i
Srun's -u option turns off buffering of stdout. Bash's -i option tells
it to run in interactive mode (with prompts).

always getting a broken shell and output like:

bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell

I just learned in the slurm irc channel that this is solved by

srun --pty -u bash -i

Would it be possible to add this to the FAQ, since that's where our
user will probably find it?

Thanks,

Jens.
--
Jens Dreger Freie Universitaet Berlin
dreger-1Olz3AKvcsuAKZTfuerNgRvVK+***@public.gmane.org Fachbereich Physik - ZEDV
Tel: +49 30 83854774 Arnimallee 14
Fax: +49 30 83855902 14195 Berlin
Loading...