diff --git a/data/triggers-available/echo.py b/data/triggers-available/echo.py new file mode 100755 index 0000000..454f6ae --- /dev/null +++ b/data/triggers-available/echo.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +"""echo.py - Simply echo the environment and the stdin.""" + +import os +import sys +import json + +def main(): + print 'STDIN JSON:', json.loads(sys.stdin.read()) + print '' + print 'ENV:', os.environ + + +if __name__ == '__main__': + try: + main() + except Exception, e: + print 'echo.py error: %s' % e + pass