# Outgoing webhook or slash command for a linux command

**URL:** <https://forum.mattermost.com/t/outgoing-webhook-or-slash-command-for-a-linux-command/11233>\
**Category:** Troubleshooting\
**Created:** [February 8, 2021, 10:18pm UTC](https://forum.mattermost.com/t/outgoing-webhook-or-slash-command-for-a-linux-command/11233 "2021-02-08T22:18:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpopesc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gpopesc/32/4380_2.png) [@gpopesc](https://forum.mattermost.com/u/gpopesc)\
**Post date:** [February 8, 2021, 10:18pm UTC](https://forum.mattermost.com/t/outgoing-webhook-or-slash-command-for-a-linux-command/11233/1 "2021-02-08T22:18:12Z")

</div>

hello

I have no programming experience at all, so please don’t shoot 🙂  
Could somebody help me how to run one of the below commands in /slash option in mattermost or in outgoing webhooks?

docker exec -it apprise apprise --body=“Test Message” --tag=mytag --config=[http://192.168.1.10:8010/get/apprise](http://192.168.1.10:8010/get/apprise)  
or  
curl -X POST -d ‘{“tag”:“mytag”, “body”:“test message”}’ -H “Content-Type: application/json” [http://192.168.1.10:8010/notify/apprise](http://192.168.1.10:8010/notify/apprise)

I tried to to put them into sh file and execute with post command in slash screen, but without any luck.

Thank you

---

<div class="post-metadata">

**Author:** ![minecraftchest1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/minecraftchest1/32/4325_2.png) [@minecraftchest1](https://forum.mattermost.com/u/minecraftchest1)\
**Post date:** [March 7, 2021, 8:55pm UTC](https://forum.mattermost.com/t/outgoing-webhook-or-slash-command-for-a-linux-command/11233/2 "2021-03-07T20:55:38Z")

</div>

I have had a script run every minute out of cron that would get the latest message from a mattermost channel and run a command if it exists. It does require some scripting knowledge however.
