Re: Not able to change baud rate



In article <61c50abe-98d9-43d2-a0a3-58acede2a33a@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Hari Prasath <gehariprasath@xxxxxxxxx> wrote:
I have a video streaming device running Linux. when i change the baud
rate using the 'stty' command,it changes temporarily for few seconds.
Then again it changes to 115200 automatically.

I don't see the 'stty' line you're asking about.

It cannot be in a subshell since those file descriptors
all vanish when it terminates.

Perhaps it ought to be directed to work on the file descriptor,
such as STDERR
stty <&2
since that's not normally redirected like STDIN or STDOUT
and group the commands in a subshell like this
(stty foo bar <&2;cmd1 ;cmd2)

I hope that's the trick, I can't quite remember.
.