home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8076 < prev    next >
Encoding:
Text File  |  1992-07-22  |  751 b   |  23 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!cs.utexas.edu!torn!watserv1!hesse
  3. From: hesse@watserv1.waterloo.edu (BJ Cameron - DCS)
  4. Subject: Can't send a break signal to a serial line defined as /dev/lp1
  5. Message-ID: <Brt9G2.IAD@watserv1.waterloo.edu>
  6. Organization: University of Waterloo
  7. Date: Wed, 22 Jul 1992 22:07:13 GMT
  8. Lines: 13
  9.  
  10.  
  11. I am having problems sending a break signal to a serial line printer.  I
  12. replaced the default backend program (piobe) with my own; this program 
  13. attempts to send a break via the following code:
  14.  
  15. if(ioctl(ttyf, TCSBRK, 0) < 0 )
  16.            perror("Can't send BREAK: ");
  17.  
  18. If the backend file is /dev/lp1 the error is returned.  If the backend file
  19. is /dev/tty0 a BREAK signal is transmitted.
  20.  
  21. Any ideas?
  22. Thanks... Bri
  23.