home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!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: /dev
- Message-ID: <1h3m36INNd4l@usenet.INS.CWRU.Edu>
- Date: 21 Dec 92 05:52:38 GMT
- Reply-To: cq377@cleveland.Freenet.Edu (David C. Williss)
- Organization: MicroImages, Inc
- Lines: 36
- NNTP-Posting-Host: hela.ins.cwru.edu
-
-
- I have a question, and maybe somebody here can point me in the right
- direction. I'm working on a software package wich we are porting to
- Unix and one of my parts is the hardcopy output. On the old system
- I could just open "lpt1:" and start dumping. On unix, things become
- harder.
-
- 1. Should I look at the /etc/printcap file to find printers?
- Assuming that somebody at the user's site is compatent
- (bad assumption) they would just have to setup printcap
- The problems here are 1. Based on past experience, I can't
- assume they know what their doing. 2. Seems not all flavors
- of unix use /etc/printcap. (We're supporting multiple platforms)
-
- 2. How do I print to a remote printer. I suppose I could fork
- and exec lpr. Is that the reccomended method?
-
- 3. For the sake of argument, lets say I ignore printcap and let the
- user select printer driver/port from within my program. Is
- there any way to tell which special files in /dev are ports
- and which aren't? Every book I've read talks about "conventional"
- names, but every implementation seems to have its own ideas
- as what to name them. I want to avoid confusing the user by
- showing such things as /dev/rroot.
-
- Is there a book about this kind of thing? I can find all kinds of
- books about writing unix device drivers, but nothing about using them.
-
- Thanks.
-
-
-
- --
- -Dave Williss
- ---------------------------------------------------------------------------
- GAAKK -- It's not just for breakfast anymore!
-