home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.pc-clone.32bit
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!chinacat!chip
- From: chip@chinacat.unicom.com (Chip Rosenthal)
- Subject: Re: Changing serial port characteristics under SCO
- Organization: Unicom Systems Development, Austin, TX
- Date: Sat, 09 Jan 1993 23:24:37 GMT
- Message-ID: <1993Jan09.232437.24494@chinacat.unicom.com>
- References: <78@mhinfo.UUCP> <1993Jan07.063858.6228@chinacat.unicom.com> <1993Jan8.034306.26786@bilver.uucp>
- Lines: 32
-
- In article <1993Jan8.034306.26786@bilver.uucp>
- bill@bilver.uucp (Bill Vermillion) writes:
- >I put a line in rc.d to run an stty on the port at boot time, and then
- >sleep for 5 minutes, then run again. [...] Would this concept work for
- >the device that is printing directly to the port?
-
- Maybe, maybe not. If the problem is that the print spooler wants the
- printer serial line configured some way other than the dorky app does,
- then no, it won't work. If the problem is that the serial port is
- being initialized at first open to unusable values, then it might work
- (by keeping the port from closing and the config from being reset).
-
- This little `stty' deamon is not the right way to fix the truncated
- print problem, and it's a kludgey way to fix this problem too. For
- reference, the best way to fix the truncated print problem is to add
- something like:
-
- stty ixany </dev/whatever
-
- at the end of the printer interface script.
-
- If the brain-dead app will accept a named pipe (c.f. mknod) as the
- printer device, the problem can be solved by running a simple daemon
- at boot:
-
- while : ; do lp -dwhatever < /path/to/the/fifo ; done
-
- and specifying /path/to/the/fifo as the print device.
- --
- Chip Rosenthal 512-482-8260 | Ergonomic (adj) - Designed to ensure
- Unicom Systems Development | maximum discomfort in left-handed people.
- <chip@chinacat.Unicom.COM> |
-