Created
February 11, 2017 21:42
-
-
Save randy3k/50ed45d25e3a9a6b7b363980298bbc04 to your computer and use it in GitHub Desktop.
shell script running nbviewer
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
#!/usr/bin/env bash | |
trap 'kill -TERM $PID' INT TERM EXIT | |
cd /home/randy3k/nbviewer | |
python3 -m nbviewer --port=8080 --localfiles=/home/randy3k/ & | |
PID=$! | |
wait $PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment