Setting serial ports to 19.2 KB

Ted Johnson ted at hpwrce.HP.COM
Mon Jun 12 03:05:56 AEST 1989


>Does anyone know how to set the serial ports to 19200 baud?
>The man page for stty mentions 19200 as equal to "exta",
>but neither "stty exta </dev/tty0"
>		  nor "stty 19200 </dev/tty0"
>seem to do anything. "stty -a </dev/tty0" reports that the
>port is still set to the previous setting, and indeed it
>is when tested.

I haven't worked with A/UX, but other flavor of unix require
you to first do a nohup sleep on the port, i.e.,

/bin/nohup /bin/sleep  99999999  < /dev/tty0 &
stty 19200 < /dev/tty0

The nohup sleep keeps the port open, so that it remembers its
port settings.

The value used for sleep is usually something which is >> the
amount of time you expect will pass before the machine is 
rebooted.

-Ted



More information about the Comp.unix.aux mailing list