Use adhoc Python 2 static web server
#!/bin/bash # server current directory or the directory given in the first parameter if [ -d "$1" ]; then pushd "$1"; python -m SimpleHTTPServer 8000; popd else python -m SimpleHTTPServer 8000 fi