From 931cf51a7cf484714be86de2edef99f2d68042eb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 22 Jan 2016 19:03:12 +0100 Subject: [PATCH] Update bashbot.sh --- bashbot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbot.sh b/bashbot.sh index 0873e01..f881871 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -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