tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "H. Blakely Williford" <blakew () fullerbrush ! com>
To: tru64-unix-managers
Subject: Filtering a pring job destined for remote printer
Date: Mon, 13 Jul 1998 21:07:01 +0000	[thread overview]
Message-ID: <96078715811649.tru64-unix-managers.marc@archive.invalid> (raw)

Hello digital unix world!

I have a case where I need to do local filtering on a print job where the 
printer is on a remote printer.  Here is the term cap for the remote queue...

lp|lp0|0|vms_print:\
        :lf=/usr/adm/lperr:\
        :lp=:\
        :mx#0:\
        :rm=mrp:\
        :rp=VMS_PRINTER:\
        :sd=/usr/spool/lpd:

now I have *A* unix book here that suggests makeing a 'dummy' printer that 
filters your print job and pipes the out put to an lpr command that has -P set 
to the value of the *real* print queue.  Here is an example of the filter

   #!/bin/bash
   {
   # Note that \033 is Esc in octal
      echo -ne \\033\&k2G
      cat
      echo -ne \\f
   } | lpr -Php-remote -h -l

*Assumeing* that this will work in digital unix I would like to have the 
following.
   #!/bin/ksh
   {
      cat
   } | lpr -P vms_print -o 9

So here comes the question; will this work in digital unix?  what doese my 
printcap entry need to look like for the *filtered* fake print that pipes it's 
out put to the *real* remote printer?

Thank you for your time.


--

H. Blakely Williford            | Men never do evil so completely & cheerfully
Systems Programer/Administrator | as when they do it with religious conviction.
The Fuller Brush Company        |                               - Blaise Pascal

                 reply	other threads:[~1998-07-13 21:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox