I need in node.js function result = execSync('node -v'); that will synchronously execute the given command line and return all stdout'ed by that command text. ps. Sync is wrong. I know. Just for personal use. UPDATE Now we have mgutz's solution which gives us exit code, but not stdout! Still waiting for a more precise answer. UPDATE mgutz updated his answer and the solution is here :) Also, as dgo