SUMMARY:Print-Filtering

From: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>
Date: Wed, 24 Jan 1996 10:14:55 -0500 (EST)

Thank you all for the responses.

We modified the lprl suggestion as follows:

moved /usr/ucb/lpr /usr/ucb/lpr.orig

/usr/ucb/lpr contains:
#! /usr/ce/bin/perl
# useage: lpr -Ppsprintername filename
system "cat $ARGV[1] | /usr/lbin/ln03rof | /usr/ucb/lpr.orig $ARGV[0]";

With the permissions:
-rwxr-xr-x 1 root system 137 Jan 24 09:52 /usr/ucb/lpr*
-rws--x--x 1 root bin 49152 Feb 2 1995 /usr/ucb/lpr.orig*

It is not perfect, so additional suggestions or improvements are welcome.

Aaron

In regards to the original message:===========================================

Date: Mon, 22 Jan 1996 10:50:02 -0500 (EST)
From: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>
To: alpha-osf-managers_at_ornl.gov
Subject: Local Filtering for remote printing OSF 3.2
Cc: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>

To anyone who can provide assistance:

Does OSF 3.2 support local filtering for remote printing. For example,
will it pick up a text file, encapsulate it into postcript, and print it.

Thank you,
Aaron Riccitelli
Dept. of Civil Engineering, CMU
==============================================================================

From: behrooz_at_rudolf.nscl.msu.edu (kevin behrooz)
Subject: Re: Local Filtering for remote printing OSF 3.2
To: ar2h+_at_andrew.cmu.edu
Date: Wed, 24 Jan 1996 09:03:37 -0500 (EST)

Hi

I tried to do the same, but it appears that all filtering is done at
the remote end. What I had to do was to write a filter that picks
up text job from one queue, encapsulates it into postscript (puts some
extra PS commands for duplex printing) and then submits them to a
different queue set up as postscript. The problem with this scheme is
that the owner of the job is now daemon, so the user can not cancel his
job. (Not a good solution)


Good Luck

Kevin Behrooz
National Superconducting Cyclotron Lab
MSU, East Lansing, Michigan
==============================================================================

From: Ray Stell <stellr_at_smyrna.cc.vt.edu>
Subject: Re: Local Filtering for remote printing OSF 3.2
To: ar2h+_at_andrew.cmu.edu
Date: Mon, 22 Jan 1996 15:19:23 -0500 (EST)

#! /usr/bin/perl
# useage: lprl -Ppsprintername filename
system "cat $ARGV[1] | /usr/lbin/ln05rof -w132 | lpr $ARGV[0]";

===============================================================
Ray Stell stellr_at_vt.edu (540) 231-4109 KE4TJC 28

==============================================================================
Date: Mon, 22 Jan 1996 09:38:41 -0800
From: Graydon Mah <mahg_at_smtpgw.ucfv.bc.ca>
To: ar2h+_at_andrew.cmu.edu
Subject: Local Filtering for remote printing OSF 3.2 -Reply

I'd be interested in hearing about any positive responses your receive.

My experience is that remote printer definitions do NOT use input or output
filters. So in the past we've had to build lpr wrappers that perform filtering
on a 'temporary' file and then send the works off to the regular lpr command
(and thus the remote printer) with the -g option so that our escape codes don't
get stripped off.

Regards,
Graydon Mah (mahg_at_ucfv.bc.ca), Database Administrator
University College of the Fraser Valley
Abbotsford, British Columbia, Canada
==============================================================================
Date: Mon, 22 Jan 1996 17:20:15 +0100 (MET)
From: Christophe Colle <colle_at_krtkg1.rug.ac.be>
To: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>
Subject: Re: Local Filtering for remote printing OSF 3.2

get you the nenscript package, available somewhere on the net.

Christophe


     | \ =============================================================
     | \ Colle Christophe Phone: +32-(0)9-2403955
     +---- mail: colle_at_krtkg1.rug.ac.be http://krtkg1.rug.ac.be/~colle
     |
 ----------+ When I'm not in Ghent, Then I'm probably Sailing
  \________| ======= Radiotherapy Department, Ghent =============
==============================================================================

To: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>
Subject: Re: Local Filtering for remote printing OSF 3.2
Date: Mon, 22 Jan 1996 17:46:09 +0100
From: Simon Tardell <tardell_at_particle.kth.se>

As far as I've understood, no. Not quite. But you can set up a local queue
which has lp=/dev/null and of=somescript where somescript does all you could
think of and then submits the job to another queue.

Simon Tardell, voice +46 8 162688 fax +46 8 347817
Fysikum, Stockholms universitet simon_at_physto.se, tardell_at_particle.kth.se
==============================================================================

From: Charles_Johnson_at_ncsu.edu
To: Aaron Todd Riccitelli <ar2h+_at_andrew.cmu.edu>
Subject: Re: Local Filtering for remote printing OSF 3.2
Date: Mon, 22 Jan 96 11:42:25 -0500

Answer is yes. An example /etc/printcap file follows (uses LAT);
the important parameters are if and to a lesser extent of.
Hope this helps ....
============================================================

lp|lp0|0|pyhplj4|HP_LaserJet_4:\
        :br#19200:\
        :ct=LAT:\
        :fc#0177777:\
        :fs#03:\
        :if=/usr/lbin/ln03rof:\
        :lf=/usr/adm/lperr:\
        :lp=/dev/tty04:\
        :mc#20:\
        :mx#0:\
        :of=/usr/lbin/ln03rof:\
        :pl#66:\
        :pw#80:\
        :rw:\
        :sd=/usr/spool/lpd/pyhplj4:\
        :sh:\
        :xc#0177777:\
        :xf=/usr/lbin/xf:\
        :xs#044000:
lp1|1|ln03:\
        :br#19200:\
        :ct=LAT:\
        :fc#0177777:\
        :fs#03:\
        :if=/usr/lbin/ln03of:\
        :lf=/usr/adm/lp1err:\
        :lp=/dev/tty05:\
        :mx#0:\
        :of=/usr/lbin/ln03of:\
        :pl#54:\
        :pw#80:\
        :rw:\
        :sd=/usr/spool/lpd/ln03:\
        :sh:\
        :xc#0177777:\
        :xf=/usr/lbin/xf:\
        :xs#044000:
==============================================================================
End of responses.
Received on Wed Jan 24 1996 - 17:00:51 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT