Capturing data off of a serial port on a 386i

Judge K Arora kenarora at mipos2.intel.com
Tue Nov 27 12:38:31 AEST 1990


  I'm not a frequent reader of this newgroups, so pardon me if this has
been asked before.....

  I'm trying to capture data that's coming off a serial port from another
computer (PC) onto my 386i (Sun OS 4.0.2).  I'd like to capture in from a 
program running on the console.  I've configured /etc/ttytab (and /etc/ttys
for back compatibility) to reflect the existence of the /dev/ttya, but
it does not have getty running, and its status is off. First, are these
the correct settings, and secondly, what is the open call (and further
ioctl's, if necessary) needed to do this (I believe canonical mode will
do)?

  Alternately, but not quite as good a solution for the problem, if I
were to configure /dev/ttya as a "Unix" terminal (i.e. run getty on it)
is there a better way of capturing data that is sent from the PC to the sun, 
keeping in mind that (at startup, at least) some commands need to go the other
way?

  Any replies by e-mail would be greatly appreciated.

Thanks,
Ken Arora


kenarora at mipos2.intel.com
kenarora at portia.stanford.edu (in case the 1st addr. bounces)



More information about the Comp.unix.questions mailing list