home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / protocol / appletal / 3973 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.protocols.appletalk
  2. 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
  3. From: peter@merlin.acadiau.ca (Peter Steele)
  4. Subject: Defining a generic input filter for CAP
  5. Message-ID: <peter.722289131@merlin>
  6. Sender: news@dragon.acadiau.ca
  7. Nntp-Posting-Host: merlin
  8. Organization: Acadia University
  9. Date: Fri, 20 Nov 1992 19:52:11 GMT
  10. Lines: 20
  11.  
  12. The man page on papif mentions that Transcript uses a single
  13. input filter, relying on the convention that for a printer x,
  14. there is a /usr/spool/lpd/x defined for the printer. I want to
  15. do this same thing for my CAP setup. The man page gives a
  16. sample script that could be used as a papif wrapper:
  17.  
  18.           #!/bin/sh
  19.           BANNERLAST=1
  20.           PSTEXT=/usr/local/lib/ps/pstext
  21.           export BANNERLAST PSTEXT
  22.           # pass the printer name and the arguments lpd passed us
  23.           /usr/local/cap/papif -P ps $*
  24.  
  25. I want to modify this so that the -P option passes the name
  26. of the printer as defined in /usr/spool/lpd. How do I determine
  27. what queue name to access from within this script? It is as
  28. simple as the current working directory?
  29. --
  30. Peter Steele        Unix Services Manager            peter.steele@acadiau.ca 
  31. Acadia Univ., Wolfville, NS, Canada B0P 1X0  902-542-2201  Fax: 902-542-4364
  32.