Luca Berra wrote:
On Mon, Apr 03, 2006 at 11:26:56PM +0000, [EMAIL PROTECTED] wrote:
$ stty -F /dev/rfcomm2 -g | stty -F /dev/rfcomm1
speed 9600 baud; line = 0;
-brkint -imaxbel

It simply ignores it:

stty does not accept input over a pipe, use:
$ stty -F /dev/rfcomm1 $(stty -F /dev/rfcomm2 -g)
Thank you sir, you saved my day.

stty still complains that there is some setting it cannot apply (it may have a valid reason), but the ports look exactly the same.

Following the same idea, I can also confirm the settings can be saved in a file and re-used:

$ stty -F /dev/com2 > com2settings && stty -F /dev/com1 $(cat com2settings)

Man, the documentation should say something about that, it is really not obvious.

Thanks a lot.
--
$(<kk1)



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to