diff --git a/run_agent_screen.sh b/run_agent_screen.sh new file mode 100755 index 0000000..3d6e271 --- /dev/null +++ b/run_agent_screen.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Oneliner to find script's directory. Please note - last path component should NOT be symlink. +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; + +/usr/bin/screen -L -Logfile $SCRIPT_DIR/agent_gsm_screen.log -d -m $SCRIPT_DIR/run_agent.sh