# Bash script to test stream

**URL:** <https://community.wowza.com/t/bash-script-to-test-stream/38519>\
**Category:** Wowza Streaming Engine\
**Created:** [August 17, 2012, 10:11pm UTC](https://community.wowza.com/t/bash-script-to-test-stream/38519 "2012-08-17T22:11:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ted\_Tucker](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@Ted\_Tucker](https://community.wowza.com/u/Ted_Tucker)\
**Post date:** [August 17, 2012, 10:11pm UTC](https://community.wowza.com/t/bash-script-to-test-stream/38519/1 "2012-08-17T22:11:03Z")

</div>

Anybody have ideas for how to write a bash script to test if a stream is alive or up?

-Mac

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [August 17, 2012, 11:52pm UTC](https://community.wowza.com/t/bash-script-to-test-stream/38519/2 "2012-08-17T23:52:16Z")

</div>

Maybe this is what you’re looking for?:

[How-to-automatically-check-if-the-Wowza-service-is-up-and-running-and-streaming](http://community.wowza.com/t/-/34536)

There are some issues with that approach, such as bandwidth, and/or notification latency. Probably a custom Wowza module that would monitor the stream on the server side would be the best way to deal with problem streams.

For example, this [IMediaStreamActionNotify2 example](https://www.wowza.com/docs/how-to-use-imediastreamactionnotify2-to-monitor-live-streams-modulestreamwatchdog) will report when a stream appears stalled.
