home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / wizards / 5320 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.1 KB

  1. Path: sparky!uunet!wupost!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: Re: /dev
  5. Date: 23 Dec 1992 05:42:52 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 40
  8. Message-ID: <1h8u8sINNdcj@usenet.INS.CWRU.Edu>
  9. References: <BzMu79.F3M@chinet.chi.il.us> <1h3m36INNd4l@usenet.INS.CWRU.Edu> <1h57c2INNhsi@chnews.intel.com>
  10. Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
  11. NNTP-Posting-Host: hela.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, les@chinet.chi.il.us (Leslie Mikesell) says:
  15.  
  16. >In article <1h57c2INNhsi@chnews.intel.com> bhoughto@sedona.intel.com (Blair P. Houghton) writes:
  17. >
  18. >>>  1.  Should I look at the /etc/printcap file to find printers?
  19. >>
  20. >>Look at the PRINTER environment variable (RTFM getenv(3)),
  21. >>and then check the printcap(5) and use the first printer
  22. >>you find there.  That is, *if* the machine has a printcap
  23. >>(AIX does not; it uses a thing called "qconfig.")
  24. >
  25. >Blatent BSDism here.  SysV(pre-r4) doesn't have printcap or lpr and
  26. >has no convention for a PRINTER variable.  Besides, even if lpr
  27. >and printcap exist on a machine it doesn't automatically mean that
  28. >it's the spooler I want to use.
  29. >
  30. >Les Mikesell
  31. >  les@chinet.chi.il.us 
  32. >
  33. Yes, that's part of my problem.  How do I know which to use.  The same
  34. code must portable and compile on several kinds of unix.  Machines
  35. involved are Data General Aviion, HP Apollo, OKI station (SysV),
  36. Sun (BSD), SGI Iris Indigo, Macintosh Quadra (running AUX), Decstation
  37. 5000, and IBM RS/6000 (AIX).  
  38.  
  39. Thanks for all the suggestions.  popen looks like my best bet.  Unless
  40. somebody can give me advice on how to determine which to use (lp/lpr),
  41. I'll just make it an option.  Then I'll just need to bring up a dialog
  42. for all options.  I'll probably allow an option to print to any 
  43. command so that an expert user can do whatever they want 
  44.  
  45. Thanks,
  46.  
  47.     Dave Williss
  48.  
  49. -- 
  50.         -Dave Williss
  51. ---------------------------------------------------------------------------
  52. GAAKK -- It's not just for breakfast anymore!
  53.