From 8b1252aebd6f761616040298cbe69c0a02dda15d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 6 Jul 2018 13:35:05 -0400 Subject: [PATCH] Further adjust --- libremanage | 1 + serial/stripped-serial.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libremanage b/libremanage index cba0dab..51bb8e2 100755 --- a/libremanage +++ b/libremanage @@ -124,6 +124,7 @@ COMMANDS = { "tty": lambda s: open_ssh(s, "screen " + s["tty"]["file"] + " " + str(s["tty"]["baud"]), force_tty=True), "tty-baud": lambda s: open_ssh(s, "stty -F "+ s["tty"]["file"] + " " + str(s["tty"]["baud"])), "tty-read": lambda s: open_ssh(s, "cat " + s["tty"]["file"], force_tty=True), + "tty-write": lambda s: open_ssh(s, "stdbuf -o0 cat > " + s["tty"]["file"], force_tty=True), # SSH sanity tests diff --git a/serial/stripped-serial.sh b/serial/stripped-serial.sh index 6ee8b5b..059ecc1 100755 --- a/serial/stripped-serial.sh +++ b/serial/stripped-serial.sh @@ -1,5 +1,5 @@ #!/bin/sh libremanage $1 tty-baud -tmux new-session -d "libremanage $1 tty-read | ./uncolor" +tmux new-session -d "bash -c 'libremanage $1 tty-read | ./uncolor'" tmux split-window -h "libremanage $1 tty-write" tmux at -- 2.25.1