🚀 update shell start

This commit is contained in:
jerry
2018-11-28 18:18:08 +08:00
parent 6b29c12a72
commit 366431a4c2
5 changed files with 29 additions and 1 deletions

13
start-screen.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
cq=$(screen -list | grep "cq")
if [[ "$cq" = "" ]]; then
screen -dmS cq
fi
sleep 1s
#ls="cd "$(pwd)"/CQBot-swoole/"
#screen -x -S cq -p 0 -X stuff ${ls}
#screen -x -S cq -p 0 -X stuff "\n"
screen -x -S cq -p 0 -X stuff "php start.php"
screen -x -S cq -p 0 -X stuff "\n"