This commit is contained in:
mathiascode 2019-09-21 18:42:33 +03:00
parent 7231531816
commit 66f13cef15
2 changed files with 8 additions and 1 deletions

View file

@ -20,7 +20,7 @@ while true; do
sleep 5
done &
ttyd -p $PORT tmux new-session -t server &
ttyd -p $PORT script/console &
sleep 30
while true; do

7
script/console Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
$client = $RANDOM
tmux/bin/tmux new-session -d -t server -s $client
tmux/bin/tmux new-window
tmux send-keys -t $client $@
tmux attach -t $client