Skip to content

Instantly share code, notes, and snippets.

@wayilive
wayilive / trigger.py
Created April 6, 2018 10:04 — forked from senko/trigger.py
When triggered via a HTTP request, execute a command.
#!/usr/bin/env python
#
# When triggered via a HTTP request, execute a command.
#
# Written by Senko Rasic <[email protected]>
# Released into Public Domain. Use it as you like.
#
# Usage: python trigger.py <host> <port> <key> <command>...
#
# HTTP GET and POST requests are supported. If you need more verbs or need