home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3317 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.6 KB

  1. Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
  2. From: sweh@spuddy.uucp (Stephen Harris)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Alternatives to ptys and fifos
  5. Message-ID: <1992Jul26.195219.6143@spuddy.uucp>
  6. Date: 26 Jul 92 19:52:19 GMT
  7. Organization: Spuddy's Public Usenet Domain
  8. Lines: 31
  9.  
  10. Hiya all!
  11. Basically, I am trying to write a daemon that alls a program such as lpd
  12. write to a file, and the daemon takes the data and sends it to a host/port.
  13. [In this case, the host/port is a terminal server with a printer attached].
  14. That allows normal usaged of printcap etc.
  15. The program is being written on SunOs 4.1.1
  16.  
  17. My problem is this:
  18. If I use pty's, if the write end to the pty is closed, and the read end
  19. (bah, master, slave, whatever!) hasn't read the whole pty buffer, then
  20. SunOS cleans the buffer after a certain timeout.
  21. I got this from one of the engineers at Sun UK.
  22.  
  23. Since I can't gaurantee the printer won't go offline, their could be a stage
  24. when this happens.
  25.  
  26. OK, forget ptys, and use fifo pipe.  After all, I only need worry about
  27. process->network, and not twoway comms :-).
  28. Next problem: kernel is limited to 10 FIFO's open at once!  I don't want to
  29. modify the kernel, because this program could endup running on machines I
  30. don't have direct control over :-(
  31.  
  32. So....does anyone have any idea of a third alternative that provides a filename
  33. the "cat" could write to, and a daemon read from?
  34.  
  35. Help please!  Your answers will be much appreciated!
  36. -- 
  37.                                Stephen Harris
  38.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  39.  
  40.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  41.