0

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.

manasij7479
  • 1,665
  • 1
  • 14
  • 22

1 Answers1

2

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.

Trott
  • 66,479
  • 23
  • 173
  • 212