Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!dali.cs.montana.edu!ogicse!intelhf!ichips!inews!mipos2!kenarora From: kenarora@mipos2.intel.com (Judge K Arora) Newsgroups: comp.unix.questions Subject: Capturing data off of a serial port on a 386i Message-ID: <1092@inews.intel.com> Date: 27 Nov 90 01:38:31 GMT Sender: news@inews.intel.com Reply-To: kenarora@mipos2.intel.com (Judge K Arora) Organization: Microprocessor Component Group, Intel Corp., Santa Clara, CA Lines: 27 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@mipos2.intel.com kenarora@portia.stanford.edu (in case the 1st addr. bounces)