On Tue, Jan 7, 2014 at 8:23 AM, Theo de Raadt <[email protected]> wrote:
> What you need to instead is wrap all this in a way which keeps the
> tty open
>
>     (
>         stty 9600 sane parenb -parodd crtscts cs7 igncr
>         do your IO loop
>     ) </dev/ttyU0 0>&1 0>&2
>
> Something like that.

I think the desired redirections on the subshell-close would make that
last line:
        ) <>/dev/ttyU0 >&0

("open /dev/ttyU0 read-write as stdin, and then dup that to stdout")


Philip Guenther

Reply via email to