Skip to content
Snippets Groups Projects
Commit e4798fcf authored by Jens Dreger's avatar Jens Dreger Committed by Morris Jette
Browse files

Correct PTY use FAQ

parent 9b1bbb1a
No related branches found
No related tags found
No related merge requests found
...@@ -403,8 +403,8 @@ as part of the process launch.</p> ...@@ -403,8 +403,8 @@ as part of the process launch.</p>
<p><a name="prompt"><b>12. How can I get shell prompts in interactive <p><a name="prompt"><b>12. How can I get shell prompts in interactive
mode?</b></a><br> mode?</b></a><br>
<i>srun -u bash -i</i><br> <i>srun --pty bash -i</i><br>
Srun's <i>-u</i> option turns off buffering of stdout. Srun's <i>--pty</i> option runs task zero in pseudo terminal mode.
Bash's <i>-i</i> option tells it to run in interactive mode (with prompts). Bash's <i>-i</i> option tells it to run in interactive mode (with prompts).
<p><a name="batch_out"><b>13. How can I get the task ID in the output <p><a name="batch_out"><b>13. How can I get the task ID in the output
...@@ -1931,6 +1931,6 @@ sacctmgr delete user name=adam cluster=tux account=chemistry ...@@ -1931,6 +1931,6 @@ sacctmgr delete user name=adam cluster=tux account=chemistry
<p class="footer"><a href="#top">top</a></p> <p class="footer"><a href="#top">top</a></p>
<p style="text-align:center;">Last modified 30 April 2014</p> <p style="text-align:center;">Last modified 12 June 2014</p>
<!--#include virtual="footer.txt"--> <!--#include virtual="footer.txt"-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment