On Wed, Jun 25, 2003 at 12:19:51PM -0600, justin wrote:
>
>-snip-
>
>> Writing directly to a user's tty device may work, but probably won't on a
>> properly configured system since it has many security implications.
>
>I am just trying to write a string of data to an output only device
>connected via a serial port.
....
>However, since this is just a customer display for a cash register, I don't
>think there is anything to worry about.
Writing to a serial port compilicates things a bit since one has
to insure that it's parameters are set correctly (e.g. baud rate,
parity, etc.) -- something like:
stty 9600 cs8 -onlcr clocal < /dev/tty1a
The stty command allows you to set how the end-of-line stuff is
handled as well, and can be used to automatically supply CRLF.
Bill
--
INTERNET:
bill@Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL:
http://www.celestial.com/
Government is actually the worst failure of civilized man. There has
never been a really good one, and even those that are most tolerable
are arbitrary, cruel, grasping and unintelligent.
-- H. L. Mencken