From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,782bea8a469ed646 X-Google-Attributes: gidfee84,public From: lpa@netcom.com (Pierre Asselin) Subject: Re: Installing a "dummy" printer Date: 1998/07/07 Message-ID: #1/1 X-Deja-AN: 369350480 Sender: lpa@netcom13.netcom.com References: <6ntm4e$jem$1@nnrp1.dejanews.com> Organization: Netcom On-Line Services Newsgroups: comp.unix.osf.osf1 stever@opin.com writes: >I'm looking for help on installing a "dummy" printer on Digital UNIX. I have >a shell script which I want executed on an incoming spool file. Rather than >being sent to a physical print device, the spool file will be processed by my >shell script, which copies the file off to another part of the system. I think all you have to do is specify /dev/null as the device and your script as the :if: filter. Your script is called with possible arguments `-n user', `-h host' and `accountingfile' and receives the file on stdin. >I have experimented with setting up a printer using 'lprsetup'. I defined a >printer of type 'unknown' and specified my shell script for the 'if' and 'of' >parameters -- but this doesn't seem to have any effect. What I do is set up a vanilla entry with lprsetup and edit the /etc/printcap directly. >Has anyone ever done this? My machine has dummy PostScript printers set up that way. The input filter feeds the data to ghostscript and tells it to pipe its output into an `lpr -Praw_printer'. So it can be done. -- --Pierre Asselin, Westminster, Colorado lpa@netcom.com