I am trying to create a webapp with PHP. When triggered by a user, a PHP file should call an executable file via command line. My test code so far is as follows:
$command = "CuraEngine.exe slice -v -j fdmprinter.def.json -l 3DBenchy.stl -o 3DBenchy.gcode 2>&1";
where all files are in the same folder and the CuraEngine.exe is in a "bin" subfolder. The result I'm getting is:
[0] => sh: 1: CuraEngine.exe: not found**
How can I run CuraEngine.exe in app services? I have read posts about WebJobs and Functions but I don't know where they apply or where to begin.