Re: stty < /dev/modem blocks???
From: Michel Lanners <hidden>
Date: 1999-09-16 07:22:41
On 15 Sep, this message from Randall R Schulz echoed through cyberspace:
As you know, the less-than (<) operator in all Unix shells opens the file name given as an argument before it executes the command. In order for an open() call on a TTY device to complete, the RS232 hardware signals that indicate the presence of an active device connected to the port. In practice, this means that the DTR (data terminal ready) signal must be asserted before the open call will return.
OK, this sounds right, but how do you explain that I can get at the tty settings with stty -a < /dev/ttySx for both of my serial ports, with absolutely nothing connected to them? ;-) Michel ------------------------------------------------------------------------- Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email mlan@cpu.lu | http://www.cpu.lu/~mlan | Learn Always. " ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/