Skip to content

Instantly share code, notes, and snippets.

@carlohcs
Created October 20, 2017 21:14
Show Gist options
  • Select an option

  • Save carlohcs/b672217702bd7f1b333ab351e8870f19 to your computer and use it in GitHub Desktop.

Select an option

Save carlohcs/b672217702bd7f1b333ab351e8870f19 to your computer and use it in GitHub Desktop.
Matar algum processo via node
killall -9 node
require('child_process').exec(`kill -9 ${pid}`)
// Base: https://gist.github.com/dominhhai/aa7f3314ad27e2c50fd5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment