From 55ee6447003fb252996e5e2b1706b40e446080ba Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 11 Sep 2009 23:48:05 +0000 Subject: [PATCH] Add FAQ based upon comment from Jerry --- doc/html/faq.shtml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/html/faq.shtml b/doc/html/faq.shtml index ef72cb6f90e..3f4c48a208e 100644 --- a/doc/html/faq.shtml +++ b/doc/html/faq.shtml @@ -121,6 +121,8 @@ <li><a href="#ubuntu">I see my host of my calling node as 127.0.1.1 instead of the correct IP address. Why is that?</a></li> <li><a href="#stop_sched">How can I stop SLURM from scheduling jobs?</a></li> +<li><a href="#scontrol_multi_jobs">Can I update multiple jobs with a single +<i>scontrol</i> command?</a></li> </ol> @@ -1227,8 +1229,16 @@ $ scontrol update PartitionName=foo State=DOWN $ scontrol update PartitionName=bar State=UP </pre></p> +<p><a name="scontrol_multi_jobs"><b>39. Can I update multiple jobs with a +single <i>scontrol</i> command?</b></a></br> +No, but you can probably use <i>squeue</i> to build the script taking +advantage of its filtering and formatting options. For example: +<pre> +$ squeue -tpd -h -o "scontrol update jobid=%i priority=1000" >my.script +</pre></p> + <p class="footer"><a href="#top">top</a></p> -<p style="text-align:center;">Last modified 25 August 2009</p> +<p style="text-align:center;">Last modified 11 September 2009</p> <!--#include virtual="footer.txt"--> -- GitLab