Update bashbot.sh

This commit is contained in:
Daniil Gentili 2016-01-22 19:03:12 +01:00
parent c1456a3119
commit 931cf51a7c
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ forward() {
startproc() {
mkdir -p "$copname"
mkfifo $copname/out
tmux kill -s $copname
tmux kill-session -t $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