# Problem running slicer in Batch mode

**URL:** <https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161>\
**Category:** Support\
**Created:** [October 3, 2017, 12:02am UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161 "2017-10-03T00:02:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suman\_Regmi](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@Suman\_Regmi](https://discourse.slicer.org/u/Suman_Regmi)\
**Post date:** [October 3, 2017, 12:02am UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/1 "2017-10-03T00:02:34Z")

</div>

I am trying to batch a number of operations in Slicer 3D to test my hypothesis however I ran into this strange problem of even making through example. Is there any pre-requisite in order to make this example script work?

[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python\_scripting#How\_can\_I\_run\_slicer\_operations\_from\_a\_batch\_script.3F](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python_scripting#How_can_I_run_slicer_operations_from_a_batch_script.3F)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 3, 2017, 12:05am UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/2 "2017-10-03T00:05:36Z")

</div>

What did you do exactly (what script you tried to run, what version of Slicer, what operating system, …)?  
What did you expect to happen?  
What happened instead? What was printed on the console? What was logged in the Slicer application log?

---

<div class="post-metadata">

**Author:** ![moselhy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moselhy/32/501_2.png) [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Post date:** [October 4, 2017, 5:56pm UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/3 "2017-10-04T17:56:06Z")

</div>

I think that the new version of Slicer does not produce any output in the command line. For example, try running (I am using Windows) Slicer.exe --help. You won’t get any output…

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 4, 2017, 6:29pm UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/4 "2017-10-04T18:29:34Z")

</div>

On Windows, we decided to disable the console, because showing a console window is not common for Windows applications. Instead you can find all messages in the application log (menu: Help / Report a bug; or menu: View / Error log).

---

<div class="post-metadata">

**Author:** ![moselhy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moselhy/32/501_2.png) [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Post date:** [October 4, 2017, 6:31pm UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/5 "2017-10-04T18:31:22Z")

</div>

But I think when it is run from the command line, there should be some output, or at least the --help flag should output some useful flags to use Slicer.exe from the command line

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 4, 2017, 6:36pm UTC](https://discourse.slicer.org/t/problem-running-slicer-in-batch-mode/1161/6 "2017-10-04T18:36:38Z")

</div>

I agree. This is a known issue ([https://issues.slicer.org/view.php?id=2934](https://issues.slicer.org/view.php?id=2934)), but there have been always more important developments or fixes to do. If you add a comment to this issue explaining why it is important for you then it will more likely to get on the radar of a developer.
