Skip to content

Instantly share code, notes, and snippets.

@retrohacker
Created June 12, 2014 21:56
Show Gist options
  • Save retrohacker/059c40f709b3f48343c3 to your computer and use it in GitHub Desktop.
Save retrohacker/059c40f709b3f48343c3 to your computer and use it in GitHub Desktop.
process.chdir(dir1)
exec("ls",function(e,stdout) {
console.log(stdout)
})
process.chdir(dir2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment