mirror of
https://github.com/danog/telegram-bot-bash.git
synced 2024-11-30 04:29:19 +01: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