Skip to content

Instantly share code, notes, and snippets.

@quamilek
Created September 15, 2016 09:08
Show Gist options
  • Save quamilek/4776fe6804cb371467ad865d794b127d to your computer and use it in GitHub Desktop.
Save quamilek/4776fe6804cb371467ad865d794b127d to your computer and use it in GitHub Desktop.
kill running python process
import os; pid=os.getpid(); os.system('kill -9 %s' % pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment