Difference between revisions of "Gateways"

From RackTables Wiki
Jump to navigation Jump to search
(adding new page)
 
m
Line 1: Line 1:
 
==What are RackTables gateways==
 
==What are RackTables gateways==
 +
RackTables is a PHP web application. Gateways are special executables residing on the same web-server, but not belonging to RackTables. The executables may be command-line scripts written in PHP, Perl, Python or any other language, or even binary files. Although PHP itself allows execution of arbitrary external commands, RackTables API provides helper functions to make such interaction ordered and convenient.
 
==Using gateways API==
 
==Using gateways API==
 +
There are two core functions:
 +
<pre>
 +
function queryTerminal ($object_id, $commands, $tolerate_remote_errors = TRUE)
 +
function callScript ($gwname, $params, $in, &$out, &$errors)
 +
</pre>

Revision as of 22:55, 1 September 2012

What are RackTables gateways

RackTables is a PHP web application. Gateways are special executables residing on the same web-server, but not belonging to RackTables. The executables may be command-line scripts written in PHP, Perl, Python or any other language, or even binary files. Although PHP itself allows execution of arbitrary external commands, RackTables API provides helper functions to make such interaction ordered and convenient.

Using gateways API

There are two core functions:

function queryTerminal ($object_id, $commands, $tolerate_remote_errors = TRUE)
function callScript ($gwname, $params, $in, &$out, &$errors)