mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-26 01:07:34 +00:00
Update bashbot.sh
This commit is contained in:
parent
471819f934
commit
c1456a3119
@ -146,6 +146,7 @@ forward() {
|
||||
startproc() {
|
||||
mkdir -p "$copname"
|
||||
mkfifo $copname/out
|
||||
tmux kill -s $copname
|
||||
tmux new-session -d -s $copname "./question &>$copname/out"
|
||||
local pid=$(ps aux | sed '/tmux/!d;/'$copname'/!d;/sed/d;s/'$USER'\s*//g;s/\s.*//g')
|
||||
echo $pid>$copname/pid
|
||||
|
Loading…
Reference in New Issue
Block a user