home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / hardware / 3572 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.sys.sun.hardware
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!riacs!danforth
  3. From: danforth@riacs.edu (Douglas G. Danforth)
  4. Subject: Re: Help: stty won't set terminal characteristics
  5. Message-ID: <1992Jul28.054526.16798@riacs.edu>
  6. Sender: news@riacs.edu
  7. Organization: RIACS, NASA Ames Research Center
  8. References: <1394@sousa.ltn.dec.com>
  9. Distribution: na
  10. Date: Tue, 28 Jul 92 05:45:26 GMT
  11. Lines: 36
  12.  
  13. In <1394@sousa.ltn.dec.com> tarsa@elijah.mv.com (Greg Tarsa) writes:
  14.  
  15.  
  16.  
  17. >We are trying to connect an HP LaserJet IIID to a Sparcstation.
  18.  
  19. >In the process of trying to get this going (no luck yet), I have encountered
  20. >a problem: I can't seem to set the terminal characteristics of /dev/ttya.
  21.  
  22. >/dev/ttya is set to "OFF" in the ttytab file and, therefore, has an entry
  23. >of "02ttya" in the /dev/ttys file.  The following command:
  24.  
  25. >    stty > /dev/ttya
  26.  
  27. >indicates a line speed of 9600 baud.  The version of stty I am using is
  28. >coming from /bin/stty (i.e., UCB syntax and not SYSV syntax).
  29.  
  30. >    stty 19200 > /dev/ttya
  31.  
  32. >should set the line speed to 19.2K, but there appears to be no change, either
  33. >as mortal user or super user.
  34.  
  35. I have had the same difficulty.  The only way I can get stty to set the
  36. characteristics and stick is to spawn a subshell with the standard output
  37. set equal to the device I want.  In my case its /dev/cua0.  But this
  38. is NOT what you or I want since this just sets the standard output charact-
  39. eristics.  Once one leaves the subshell the device reverts back to its
  40. old settings.  I believe we are not interpretting the function of stty
  41. correctly.
  42.  
  43. Please, UNIX wizards out there.  What IS the correct procedure to 
  44. change device characteristics?
  45.  
  46. -----
  47. D. Danforth
  48.  
  49.