home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5850 < prev    next >
Encoding:
Text File  |  1992-08-26  |  946 b   |  33 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!seas.smu.edu!vivaldi!necbsd!gilbert
  3. From: gilbert@esd.dl.nec.com (Russell Gilbert)
  4. Subject: Re: printcap to send to a process instead of a printer - needed.
  5. Message-ID: <1992Aug26.135342.11756@esd.dl.nec.com>
  6. Lines: 27
  7. Organization: NEC America, Engineering & Support
  8. References: <1992Aug24.210331.26056@esd.dl.nec.com>
  9. Date: Wed, 26 Aug 1992 13:53:42 GMT
  10.  
  11. From article <1992Aug24.210331.26056@esd.dl.nec.com>, by gilbert@esd.dl.nec.com (Russell Gilbert):
  12. > I'm trying to make an entry in /etc/printcap so that lpr will send the
  13. > file to a process.
  14. > I want the file to be mailed to me instead of actually being printed.
  15. > Something like...   lpr -Ptest file     would mail the file to me.
  16.  
  17. Thanks to all who mailed me the solution:
  18.  
  19.  
  20. test:
  21.     :lp=/dev/null:if=/usr/lib/test_filter:rp=test:
  22.  
  23.  
  24. And test_filter contains:
  25.  
  26. cat - | mail gilbert
  27.  
  28.  
  29. Thanks again,
  30.  
  31. Russell    (gilbert@esd.dl.nec.com)
  32.