- add script to run agent_gsm in screen

This commit is contained in:
Dmytro Bogovych 2023-09-07 09:11:28 +03:00
parent abb41e08fa
commit eb20881fcf
1 changed files with 6 additions and 0 deletions

6
run_agent_screen.sh Executable file
View File

@ -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