async

  1. The Doctor

    Javascript/Node.js: Problem Assigning Variable After Async Shell CMD

    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...
Back
Top