home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5289 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.9 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cq377
  2. From: cq377@cleveland.Freenet.Edu (David C. Williss)
  3. Newsgroups: comp.unix.wizards
  4. Subject: /dev
  5. Message-ID: <1h3m36INNd4l@usenet.INS.CWRU.Edu>
  6. Date: 21 Dec 92 05:52:38 GMT
  7. Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
  8. Organization: MicroImages, Inc
  9. Lines: 36
  10. NNTP-Posting-Host: hela.ins.cwru.edu
  11.  
  12.  
  13. I have a question, and maybe somebody here can point me in the right 
  14. direction.  I'm working on a software package wich we are porting to
  15. Unix and one of my parts is the hardcopy output.  On the old system
  16. I could just open "lpt1:" and start dumping.  On unix, things become
  17. harder.  
  18.  
  19.   1.  Should I look at the /etc/printcap file to find printers?
  20.       Assuming that somebody at the user's site is compatent
  21.       (bad assumption) they would just have to setup printcap
  22.       The problems here are 1. Based on past experience, I can't
  23.       assume they know what their doing.  2. Seems not all flavors
  24.       of unix use /etc/printcap. (We're supporting multiple platforms)
  25.  
  26.   2.  How do I print to a remote printer.  I suppose I could fork
  27.       and exec lpr.  Is that the reccomended method?  
  28.  
  29.   3.  For the sake of argument, lets say I ignore printcap and let the
  30.       user select printer driver/port from within my program.  Is
  31.       there any way to tell which special files in /dev are ports
  32.       and which aren't?  Every book I've read talks about "conventional"
  33.       names, but every implementation seems to have its own ideas
  34.       as what to name them.  I want to avoid confusing the user by
  35.       showing such things as /dev/rroot.
  36.  
  37. Is there a book about this kind of thing?  I can find all kinds of
  38. books about writing unix device drivers, but nothing about using them.
  39.  
  40.     Thanks.
  41.  
  42.  
  43.  
  44. -- 
  45.         -Dave Williss
  46. ---------------------------------------------------------------------------
  47. GAAKK -- It's not just for breakfast anymore!
  48.