On Wed, Oct 16, 2024 at 10:32:45 +0200, Ramiro Aceves wrote: > Thanks Martin and RVP, cat -u did not work. > > netbsd-raspa4$ { sleep 1; stty -f /dev/ttyU0 9600 raw clocal cread > -crtscts; } & cat -u -v /dev/ttyU0 > stty: /dev/ttyU0: Resource temporarily unavailable
It seems to me you are running in circles. Here you again open the device multiple times (I think this was already mentioned up-thread). You might be better off with lang/tcp-expect or devel/py-pexpect (or even chat(8) may be, depending on what you need). -uwe