-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not use exec #35
Comments
Did you ever figure this out? |
Nope, still a problem |
Sorry for the delay, I missed the notification. I don't know what Maybe you should write the logs to a file, checkout winston or bunyan |
I think there is a problem with running an executable from a windows service after XP. |
Yeah, so req.params.script is the location to the executable. So lets just say this is the code failing: var exec = require('child_process').execFile; |
Did you manage to figure this problem of the exec command not working to a .exe file? |
I found a reason for this problem at this link. Turns our you can't create processes from windows services anymore. |
I am trying to use the following. It works when ran with "node app.js" but not from within the service:
var exec = require('child_process').execFile;
exec("C:\scripts" + req.params.script + ".exe", function(error, stdout, stderr){
console.log(arguments);
});
Any ideas?
The text was updated successfully, but these errors were encountered: