# Linux Command line to enable specific stream target

**URL:** <https://community.wowza.com/t/linux-command-line-to-enable-specific-stream-target/94975>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [May 22, 2022, 12:23am UTC](https://community.wowza.com/t/linux-command-line-to-enable-specific-stream-target/94975 "2022-05-22T00:23:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edward\_Yuen](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@Edward\_Yuen](https://community.wowza.com/u/Edward_Yuen)\
**Post date:** [May 22, 2022, 12:23am UTC](https://community.wowza.com/t/linux-command-line-to-enable-specific-stream-target/94975/1 "2022-05-22T00:23:42Z")

</div>

I have used WOWZA web interface to enable/disable stream target for 2 years. I have thinking whether I could use linux crontab job to enable specific stream target under a application.

I found some info. on REST API. but I am not good on API yet. Would someone provide to teach how to capture/list down existing stream target on our system on Linux shell script ?

I used Ubuntu 20.04 and WOWZA Stream engine to broadcast youtube. If I could schedule (e.g. 9:30 a.m.) on Linux to Enable using Linux command shell. I could run on Crontab job - enable and disable.

Within WOWZA stream engine, 1x application. I have 5 stream targets. I need to specify a stream target to enable/disable.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [June 2, 2022, 1:52am UTC](https://community.wowza.com/t/linux-command-line-to-enable-specific-stream-target/94975/2 "2022-06-02T01:52:44Z")

</div>

@Edward_Yuen see the [rest api documentation](https://www.wowza.com/docs/stream-targets-query-examples-push-publishing). You can use Linux shell with curl and jq (json utility) to build your own automation. You of course involve cron as well.

---

<div class="post-metadata">

**Author:** ![Edward\_Yuen](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@Edward\_Yuen](https://community.wowza.com/u/Edward_Yuen)\
**Post date:** [June 2, 2022, 2:44am UTC](https://community.wowza.com/t/linux-command-line-to-enable-specific-stream-target/94975/3 "2022-06-02T02:44:35Z")

</div>

Thank you for reply. I did not use REST API before. Let me try to read doc first and see whether I could handle it. May ask answer later.
