Skip to content

Instantly share code, notes, and snippets.

@tianp
Last active August 29, 2015 14:05
Show Gist options
  • Save tianp/d792688bb4e9e9f20b3b to your computer and use it in GitHub Desktop.
Save tianp/d792688bb4e9e9f20b3b to your computer and use it in GitHub Desktop.
Execute Unix command using Node.js
// 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