home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.appletalk
- Path: sparky!uunet!usc!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!dragon.acadiau.ca!merlin!peter
- From: peter@merlin.acadiau.ca (Peter Steele)
- Subject: Defining a generic input filter for CAP
- Message-ID: <peter.722289131@merlin>
- Sender: news@dragon.acadiau.ca
- Nntp-Posting-Host: merlin
- Organization: Acadia University
- Date: Fri, 20 Nov 1992 19:52:11 GMT
- Lines: 20
-
- The man page on papif mentions that Transcript uses a single
- input filter, relying on the convention that for a printer x,
- there is a /usr/spool/lpd/x defined for the printer. I want to
- do this same thing for my CAP setup. The man page gives a
- sample script that could be used as a papif wrapper:
-
- #!/bin/sh
- BANNERLAST=1
- PSTEXT=/usr/local/lib/ps/pstext
- export BANNERLAST PSTEXT
- # pass the printer name and the arguments lpd passed us
- /usr/local/cap/papif -P ps $*
-
- I want to modify this so that the -P option passes the name
- of the printer as defined in /usr/spool/lpd. How do I determine
- what queue name to access from within this script? It is as
- simple as the current working directory?
- --
- Peter Steele Unix Services Manager peter.steele@acadiau.ca
- Acadia Univ., Wolfville, NS, Canada B0P 1X0 902-542-2201 Fax: 902-542-4364
-