Skip to content

Instantly share code, notes, and snippets.

@thetrung
Created September 8, 2020 16:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thetrung/f60d8d01180f91ec537a2fceb4b4c9eb to your computer and use it in GitHub Desktop.
Save thetrung/f60d8d01180f91ec537a2fceb4b4c9eb to your computer and use it in GitHub Desktop.
Start SimpleHTTPServer in Background
#!/usr/bin/env bash
# Create a page in the current dir
echo "Init server..."
# Start server
python -m SimpleHTTPServer 8000 &> /dev/null &
pid=$!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment