Re: Unix equivalent of Dos commands "justin" <justin_robbs@NO_SPAMhotmail.com> wrote in message
news:bdcjh4$n87$1@news.tdl.com...
> I am trying to send strings of data to a customer display connect to
> /dev/tty2a in Openserver 5.0.5. The use manual explains how to do this in
> dos, but I want to test in out in unix. The manual says to do the
following
> dos commands:
>
> mode com1 96,n,8,1
> type con>com1
>
> then type "!#1ABCDEFGH" and press enter. The display will show "ABCDEFGH"
> on the first line. Press Ctrl-C to end.
>
> In dos, I can sit there all day and type in various strings and it works,
> but I don't know how to do this in unix. I believe that I have the
settings
> for tty2a set correctly as I can type echo $string > /dev/tty2a and it
> displays. The problem with this testing is that the device has to be
reset
> after each line because it needs a cr/lf to end one line and begin
accepting
> another.
>
> Any help is greatly appreciated.
>
Read the man page for echo
echo $string\r\n
Ron |