I have an exe, what was created with dotnet. I have an rhc server, where I want to run this exe, and catch the oputput of it (with child-process). But I have a folowing error:
cannot execute binary file
I understand that is not executeable on linux, but is there any solution to solve this, without rewrite the exe, or change os? Are there any node package, what can solve this?
Very thanx for your answers!
I don't think this is possible without recompiling the exe. If you had the sources, you could compile them with mono and invoke mono from node.
You can try using Wine for launching windows binaries in linux. It is not 100% compatible with all windows libraries but it supports a lot of applications. So instead of trying to execute exe directly from node, you can call the wine command to launch the exe for you.
You cna get more info on wine at http://www.winehq.org