medent
asked on
make stty settings permanent
Hi,
I am able to set the xon xoff settings on a serial port (rh linux 7.2), but unable to make them permanent. The settings toggle back to "defaults" when the port changes state (respawn to off, etc). I am actually using the ditty command which is a stty interface from digiboard. Is there a way to make the changes permanent?
I am able to set the xon xoff settings on a serial port (rh linux 7.2), but unable to make them permanent. The settings toggle back to "defaults" when the port changes state (respawn to off, etc). I am actually using the ditty command which is a stty interface from digiboard. Is there a way to make the changes permanent?
respawn ditty, so I assume that it is specified in /etc/inittab, there you can place all options which can be passed to ditty. You need to read the docs about ditty which options you need.
ASKER
Not sure I understand- Please clarify. I know the ditty command syntax to set the xon xoff state, thats not my problem. I want to know how to make stty settings stick. I have put in inittab as "once" to run once, but that will change if a port is toggled (occasionally done to "reset" a stuck terminal,etc). I'm not sure if respawn ditty is valid (which appears to be your idea), because it would continually restart the process after terminated (great for login bad for ditty). Thank You.
even if it is once in inittab, you should set the parameters there (if ditty has some)
ASKER
The question remains how to preserve the stty settings or protect them from changing during runtime. Thank You.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is not an intention user change. The stty defaults as a side effect of when status of the port in the inittab changes (respawn to off, or vice versa).
I do not understand why the stty goes to default when the inittab changes in that way, or even why a reboot defaults all you stty settings, but I would like to at least preserve the settings during runtime. Disabling stty will probably trade problems for problems...
I do not understand why the stty goes to default when the inittab changes in that way, or even why a reboot defaults all you stty settings, but I would like to at least preserve the settings during runtime. Disabling stty will probably trade problems for problems...
medent:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
ASKER
stty or ditty are not directly issued from within the inittab, "agetty" is (generates a login)
so the problem seems to be when agetty respawns, it changes the port state (flow control in particular), then I have to fix it by usuing the ditty command.
so the problem seems to be when agetty respawns, it changes the port state (flow control in particular), then I have to fix it by usuing the ditty command.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:
Be PAQ'd/Points Refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Paul
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is to:
Be PAQ'd/Points Refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Paul
EE Cleanup Volunteer