Created
December 31, 2014 04:23
-
-
Save ionatan-israel/3dc6926a924657394e69 to your computer and use it in GitHub Desktop.
A veces el proceso del servidor de desarrollo de Django queda bloqueado. Este script recibe un parámetro (el puerto) por lo regular --> 8000 y elimina el proceso que este escuchando ese puerto.
This file contains hidden or 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
#!/bin/zsh | |
lsof -P | grep ':'$1 | awk '{print $2}' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment