Assume that I have a program running in a local machine, and I would like to hear it about HTTP requests, which trigger Does the program run and answer with program output. For example, I have rrdtool installed in the Linux box (command line utility to access the round robin database) and I want the web client to run the rrdtool program from the web server and request feedback with the output of rrdtool .
Quesitons:
-
I know that programming languages are used to generate dynamic HTML content to send back to the client but before rrdtool In order to begin with a web request that is required only, rrdtool offers various programming language bindings such as Python, but I would like to use Node.js on the server side and binding for rrdtool Kript is not supported. So how is the interface between my javascript code and rrdtool program (CLI) done?
-
I thought of using rrd4ol functions like jv implementation of rrd4j, but portability is not really a priority for me and I am in official rrdtool program (written in C) For better performance, however, I'm not sure that the cost of the interface between the server side and javascript on rrdtool will exceed the performance benefits of running a program.
Any help / feedback / indicators will be appreciated. Use the node's "hair process" module to simply run your rrdtool, then press < Hold your output with code> child.stdin.on ('data', function (data) {... , etc.), format it in HTML, and send it as an answer web The request which started it.
No comments:
Post a Comment