1
0
mirror of https://github.com/danog/id3bot.git synced 2024-11-26 20:04:46 +01:00

Update bashbot.sh

This commit is contained in:
Daniil Gentili 2016-01-22 19:01:24 +01:00
parent 471819f934
commit c1456a3119

View File

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