home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!spool.mu.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cq377
- From: cq377@cleveland.Freenet.Edu (David C. Williss)
- Newsgroups: comp.unix.wizards
- Subject: Re: /dev
- Date: 23 Dec 1992 05:42:52 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Lines: 40
- Message-ID: <1h8u8sINNdcj@usenet.INS.CWRU.Edu>
- References: <BzMu79.F3M@chinet.chi.il.us> <1h3m36INNd4l@usenet.INS.CWRU.Edu> <1h57c2INNhsi@chnews.intel.com>
- Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
- NNTP-Posting-Host: hela.ins.cwru.edu
-
-
- In a previous article, les@chinet.chi.il.us (Leslie Mikesell) says:
-
- >In article <1h57c2INNhsi@chnews.intel.com> bhoughto@sedona.intel.com (Blair P. Houghton) writes:
- >
- >>> 1. Should I look at the /etc/printcap file to find printers?
- >>
- >>Look at the PRINTER environment variable (RTFM getenv(3)),
- >>and then check the printcap(5) and use the first printer
- >>you find there. That is, *if* the machine has a printcap
- >>(AIX does not; it uses a thing called "qconfig.")
- >
- >Blatent BSDism here. SysV(pre-r4) doesn't have printcap or lpr and
- >has no convention for a PRINTER variable. Besides, even if lpr
- >and printcap exist on a machine it doesn't automatically mean that
- >it's the spooler I want to use.
- >
- >Les Mikesell
- > les@chinet.chi.il.us
- >
- Yes, that's part of my problem. How do I know which to use. The same
- code must portable and compile on several kinds of unix. Machines
- involved are Data General Aviion, HP Apollo, OKI station (SysV),
- Sun (BSD), SGI Iris Indigo, Macintosh Quadra (running AUX), Decstation
- 5000, and IBM RS/6000 (AIX).
-
- Thanks for all the suggestions. popen looks like my best bet. Unless
- somebody can give me advice on how to determine which to use (lp/lpr),
- I'll just make it an option. Then I'll just need to bring up a dialog
- for all options. I'll probably allow an option to print to any
- command so that an expert user can do whatever they want
-
- Thanks,
-
- Dave Williss
-
- --
- -Dave Williss
- ---------------------------------------------------------------------------
- GAAKK -- It's not just for breakfast anymore!
-