home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / pcclone / 32bit / 1003 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.8 KB  |  43 lines

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