I am evaluating what to use for a simple web service. I have a c++ program that takes some queries and generates html pages.
How do I call this executable from a server I am writing in javascript?
If there is a better tool for the task, suggestions are welcome.
If you want to launch the C++ program as a separate process, take a look at ChildProcess
with special attention on spawn()
, and exec()
.
If you want to treat it as a dynamically linked shared object, look at Addons .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.