bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cooker] stty -g?


From: Quel Qun
Subject: Re: [Cooker] stty -g?
Date: Tue, 04 Apr 2006 18:44:10 -0700
User-agent: Mail/News 1.5 (X11/20060225)

Luca Berra wrote:
On Mon, Apr 03, 2006 at 11:26:56PM +0000, address@hidden 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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]