Created
June 9, 2016 09:52
-
-
Save taueres/4549500bb3235d811f5bafe82a1a8bfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const child_process = require('child_process'); | |
try { | |
child_process.execFileSync('false'); | |
} catch (err) { | |
// Exit status code is in `err.status` | |
} | |
child_process.execFile('false', function (err) { | |
// Exit status code is in `err.code` | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment