echo and tty issue

jam at tigger.ws jam at tigger.ws
Mon Nov 19 12:59:53 UTC 2018



> On 19 Nov 2018, at 8:00 pm, macports-users-request at lists.macports.org wrote:
> 
>> A simple Shell question: just send standard output to this TTY like 
>> that:echo toto > /dev/<TTY> where <TTY> is the serial device used.
> 
> And you'll need to configure the tty port for speed etc, of course, and 
> that's where it starts to get tricky.
> 
> It would be helpful if the original problem was stated more fully, but 
> that has little to do with MacPorts.

You’d do better installing minicom

eg
stty 19200 </dev/cu.whatervertty   (it was 9600)
echo 123 > /dev/cu.whatervertty

It comes out at 9600 baud. Error? No! It was 9600, stty set it to 19200, but when stty was finished it may revert to 9600. That kind of tricky

James


More information about the macports-users mailing list