From 85b8db139a06d857340844e52e098177307c2d27 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 15 Mar 2007 16:43:47 +0000 Subject: [PATCH] descript how to get shell prompts in FAQ --- doc/html/faq.shtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/html/faq.shtml b/doc/html/faq.shtml index 8372c38d1ce..f5b5abf8885 100644 --- a/doc/html/faq.shtml +++ b/doc/html/faq.shtml @@ -17,6 +17,7 @@ job?</a></li> <li><a href="#orphan">Why do I have job steps when my job has already COMPLETED?</a></li> <li><a href="#multi_batch">How can I run a job within an existing job allocation?</a></li> <li><a href="#user_env">How does SLURM establish the environment for my job?</a></li> +<li><a href="#prompt">How can I get shell prompts in interactive mode?</a></li> </ol> <h2>For Administrators</h2> <ol> @@ -271,6 +272,12 @@ is executed are propagated to the spawned processes. The <i>~/.profile</i> and <i>~/.bashrc</i> scripts are not executed as part of the process launch.</p> +<p><a name="prompt"><b>13. How can I get shell prompts in interactive +mode?</b></a><br> +<i>srun -u bash -i</i><br> +Srun's <i>-u</i> option turns off buffering of stdout. +Bash's <i>-i</i> option tells it to run in interactive mode (with prompts). + <p class="footer"><a href="#top">top</a></p> <h2>For Administrators</h2> @@ -527,6 +534,6 @@ of <i>srun</i> serves a similar purpose. <p class="footer"><a href="#top">top</a></p> -<p style="text-align:center;">Last modified 2 March 2007</p> +<p style="text-align:center;">Last modified 15 March 2007</p> <!--#include virtual="footer.txt"--> -- GitLab