# Display "shell" or "command" STDOUT/STDERR in real time as they execute

**URL:** <https://forum.ansible.com/t/display-shell-or-command-stdout-stderr-in-real-time-as-they-execute/20422>\
**Category:** Ansible Project\
**Created:** [February 2, 2016, 5:25pm UTC](https://forum.ansible.com/t/display-shell-or-command-stdout-stderr-in-real-time-as-they-execute/20422 "2016-02-02T17:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Leo\_Huetter](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Post date:** [February 2, 2016, 5:25pm UTC](https://forum.ansible.com/t/display-shell-or-command-stdout-stderr-in-real-time-as-they-execute/20422/1 "2016-02-02T17:25:40Z")

</div>

Hello,

I have seen previous posts on this topic but wanted to ask again hoping this is something we are considering now …

Problem:

When using Ansible to remotely execute command/shell commands, we cannot see the STDOUT/STDERR of these in-flight commands until the execution is COMPLETE.

Use Case:

We have 5-10 servers we sometimes need to execute custom vendor scripts. Consider these vendor script as “black box” but required to maintain the application.

Sometimes these scripts HANG and we need to control-c or kill them. Sometimes they execute DATABASE changes which take 10-15 minutes to complete.

We would like to have the OPTION to see the output of these remote commands as they run.

We are doing our formal POC of Ansible now and this is becoming a sticking point.

Thanks, John @ Folsom, CA

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 2, 2016, 7:20pm UTC](https://forum.ansible.com/t/display-shell-or-command-stdout-stderr-in-real-time-as-they-execute/20422/2 "2016-02-02T19:20:44Z")

</div>

that is what im experementing on adding in this branch  
[https://github.com/bcoca/ansible/tree/update\_json](https://github.com/bcoca/ansible/tree/update_json)
