Last active
August 29, 2015 14:05
-
-
Save tianp/d792688bb4e9e9f20b3b to your computer and use it in GitHub Desktop.
Execute Unix command using Node.js
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
// Minimal code to execute unix command using Node.js | |
// require the native `exec` module | |
var exec = require('child_process').exec | |
// run the exec command | |
exec("mkdir Musics"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment