View Single Post

   
  #1 (permalink)  
Old 02-15-2008, 10:00 AM
justin
 
Posts: n/a
Default Unix equivalent of Dos commands

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.

Justin


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/03


Reply With Quote