Skip to content

Instantly share code, notes, and snippets.

View kaedea's full-sized avatar
:electron:
Shooting Star

Kaede Akatsuki kaedea

:electron:
Shooting Star
View GitHub Profile
@kaedea
kaedea / start-stop-server-in-background.sh
Created August 13, 2019 13:38 — forked from pwittchen/start-stop-server-in-background.sh
Starting and stopping simple HTTP server in background on Linux. After starting server and closing terminal, server should keep running
# starting simple HTTP server with Python in background
screen -d -m python -m SimpleHTTPServer 7777
# killing process running with screen in background
kill -9 `top -n 1 | pgrep screen`