I am new to this , trying to run electron app through cmd. I have .js file that runs the .exe file. I can see output in cmd terminal. Along with that I need to print those output in .html.
function coords() {
var executablePath = "C:\\Users\\cal.exe";
child(executablePath, function(err, data) {
if(err){
console.error(err);
return;
}
console.log(data.toString());
$("#resultpad").html("lat and long" +console.log()+ "cordinates");
});
}
JavaScript Output from exe
"The value for number is: "
<h2>
JavaScript Display coordinates
Using console.log()
</h2>
<!-- Script to use console.log() -->
<script>
console.log(data.toString());
</script>