# Seeing a stream of output from stdout while forked commands execute?

**URL:** <https://forum.ansible.com/t/seeing-a-stream-of-output-from-stdout-while-forked-commands-execute/19541>\
**Category:** Ansible Project\
**Created:** [October 18, 2015, 11:04pm UTC](https://forum.ansible.com/t/seeing-a-stream-of-output-from-stdout-while-forked-commands-execute/19541 "2015-10-18T23:04:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Burton](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Post date:** [October 18, 2015, 11:04pm UTC](https://forum.ansible.com/t/seeing-a-stream-of-output-from-stdout-while-forked-commands-execute/19541/1 "2015-10-18T23:04:27Z")

</div>

I need to see two things when using the shell command with ansible.

1. Which hosts it’s attempting…

2. Which hosts it’s contacted , executed a command on, but hasn’t yet received a value.

3. The output, as it’s streaming back from clients.

Without this it’s difficult to use ansible for long running commands such as cluster repair jobs.

With Cassandra you often have to run nodetool repair/cleanup and these take a while.

I want to know which nodes are being cleaned so I can monitor them.

---

<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:** [October 19, 2015, 5:35pm UTC](https://forum.ansible.com/t/seeing-a-stream-of-output-from-stdout-while-forked-commands-execute/19541/2 "2015-10-19T17:35:02Z")

</div>

1. can be done via callback

2 and 3 are not how ansible works, there it only returns data once the  
execution is complete.

async tasks are the exception to this but they don't return any other  
data than the process is 'running', they would need to be modified to  
support this
