Skip to content

Instantly share code, notes, and snippets.

@zumwalt
Created July 25, 2015 00:52
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 zumwalt/0387bd8d7bea562f7b00 to your computer and use it in GitHub Desktop.
Save zumwalt/0387bd8d7bea562f7b00 to your computer and use it in GitHub Desktop.
Bash script to open a Python server on a specified port
server() {
if [ -z "$1"]
then
python -m SimpleHTTPServer 8000
else
python -m SimpleHTTPServer $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment