In Node I need to return the value of a shell command to a global but it doesn't work; however, the same command using console.log works fine. Why does my global always wind up as "undefined?"
function RunCMD(cmd, args, callBack )
{
var spawn = require('child_process').spawn;
var child...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.