# How to execute custom logic through a shell script after a recording completes

**URL:** <https://community.wowza.com/t/how-to-execute-custom-logic-through-a-shell-script-after-a-recording-completes/95554>\
**Category:** Streaming Tips\
**Tags:** wowza-streaming-server-java-api\
**Created:** [October 26, 2022, 9:09pm UTC](https://community.wowza.com/t/how-to-execute-custom-logic-through-a-shell-script-after-a-recording-completes/95554 "2022-10-26T21:09:25Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [October 26, 2022, 9:09pm UTC](https://community.wowza.com/t/how-to-execute-custom-logic-through-a-shell-script-after-a-recording-completes/95554/1 "2022-10-26T21:09:26Z")

</div>

This tutorial was written by one of our community members @Connessione who is sharing his streaming experience to assist others. He is a third party and not employed by Wowza.

Thanks for sharing this with the community!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/3/377d2e6dc1fd01ef7248015043092f75adf4ca2b.jpeg)

A lot of use cases in the streaming workflow require us to do something after a stream recording completes. It could be as simple as notifying a remote endpoint or moving the recorded file to a different location etc. Irrespective of what you want to do, things can become complex as you work with java to write/trigger your custom logic as a module. Whenever you want to update the code, you will need to recompile and redeploy the code.

The open source [onRecord module (ModuleOnRecordScript)](https://github.com/connessionetech/rtmpworld-wse-plugin-onrecord/releases) makes it simpler for you to tap into the `record complete` event by connecting it to an external shell script (bash for Linux and .bat for windows). You can [read through the module’s documentation](https://rtmpworld.com/blog/execute-custom-logic-via-shell-script-after-recording-a-stream-with-wowza-streaming-engine/#vodpostprocess-installation) to learn more about it and get an understanding of how it can be helpful to you.
