Skip to content

Instantly share code, notes, and snippets.

@gunderson
Created May 14, 2015 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunderson/fd36bebdab9285ff4e29 to your computer and use it in GitHub Desktop.
Save gunderson/fd36bebdab9285ff4e29 to your computer and use it in GitHub Desktop.
Node.js oneliner to check which program child_process.spawn is calling
require("child_process").spawn("which", ["program_name_goes_here"]).stdout.on('data',function(data){console.log(data.toString());});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment