Program opwire-agent is a simple command line wrapper. It receives a request from a REST API client or a message queue broker and transports this request to a command line process (that is developed by any programming language).
Architecture
Command line programs
Command line programs use 5 technical mechanism to communicate with outer service (i.e opwire-agent):
Environment variables;
Command arguments;
Standard I/O: stdin, stdout, stderr;
JSON encoding, decoding;
Message logs (to log files);
Opwire development team provides a collection of command line examples in several programming languges: