home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9457 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.3 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!portal.austin.ibm.com!awdprime.austin.ibm.com!konopik.austin.ibm.com!konopik
  2. From: konopik@konopik.austin.ibm.com (Brad Konopik)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Can't send a break signal to a serial line defined as /dev/lp1
  5. Message-ID: <1992Sep4.151504.1316@awdprime.austin.ibm.com>
  6. Date: 4 Sep 92 15:15:04 GMT
  7. References: <1992Aug31.043606.17396@ibmpa.awdpa.ibm.com> <BtyI3r.HEn@watserv1.uwaterloo.ca>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Organization: IBM AIX Porting Center, Austin
  10. Lines: 39
  11.  
  12. In article <BtyI3r.HEn@watserv1.uwaterloo.ca> hesse@watserv1.uwaterloo.ca (BJ Cameron - DCS) writes:
  13. >
  14. >Gee Brad, you just get back from vacation? :) I posted this back in July.  I guess I should have posted a followup with the answer received from Rich Coe via mail.
  15. >He suggested:
  16. >
  17. > /* push the posix line discipline */
  18. >ioctl(fd, TXADDCD, "posix");
  19. >ioctl(fd, TCSBRK, 0);
  20. >     /* pop the posix line discipline */
  21. >ioctl(fd, TXDELCD, "posix");
  22. >
  23. >>>>Any ideas?
  24. >> 
  25. >> When using a serial printer, you are normally talking to the serial printer
  26. >> line discipline...not the posix line discipline.  The TCSBRK and TCSBREAK
  27. >> support are in the posix line discipline.  You're outta luck.
  28. >
  29. >I tried the above and it works fine; it allows sending a break signal over a 
  30. >serial line defined as /dev/lp1.  Hope this helps anyone else trying to print
  31. >through a modem or other communication device.
  32. >
  33. >Bri
  34.  
  35. July, eh ?  That may be old for a newsgroup posting, but it can be young for
  36. a tty PMR !  Rich's suggestion is technically feasible, but I'm not sure
  37. how practical it is.  If you are talking to this printer strictly under
  38. program contol, this would be fine.  If the printer is part of the spooling
  39. subsystem (backend, qdeamon, etc.) you might be asking for trouble...just
  40. imagine what would happen if the backend started spewing serial discipline
  41. specific ioctls (or read/write semantics) to your printer while you had the
  42. posix line discipline pushed on the tty stack !!
  43.  
  44. Pay yer money, take yer chances !
  45.  
  46. -- 
  47.   tcpnet: konopik@konopik.austin.ibm.com  |  Brad Konopik
  48.  ibmvnet: KONOPIK at AUSTIN               |  IBM AIX Porting Center, Austin
  49. internet: konopik.austin.ibm.com!konopik@ibmpa.awdpa.ibm.com
  50.    uunet: ..!uunet!ibmsupt!ibmpa!konopik.austin.ibm.com!konopik
  51.