Created
September 15, 2016 09:08
-
-
Save quamilek/4776fe6804cb371467ad865d794b127d to your computer and use it in GitHub Desktop.
kill running python process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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