diff --git a/share/screenrc b/share/screenrc new file mode 100644 index 0000000..4e4167d --- /dev/null +++ b/share/screenrc @@ -0,0 +1,2 @@ +screen -t srv.py bash -c "cd ~/wttr.in; ve/bin/python bin/srv.py; bash -i" +screen -t proxy.py bash -c "cd ~/wttr.in; ve/bin/python bin/proxy.py; bash -i" diff --git a/share/scripts/start-screen.sh b/share/scripts/start-screen.sh new file mode 100755 index 0000000..9469de7 --- /dev/null +++ b/share/scripts/start-screen.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +SESSION_NAME=wttr.in +SCREENRC_PATH=$(dirname $(dirname "$0"))/screenrc + +screen -dmS "$SESSION_NAME" -c "$SCREENRC_PATH" +