I am an amateur. Keep this in mind.
man lpr says that lpr will use the environmental variable PRINTER as the
queue to use unless overridden by a -P option with the lpr commmand.
So, could you make a bashrc script or some such so that each time a user
logs on this script runs:
#!/bin/bash
case `hostname` in
  lab001* ) PRINTER="printer1";export $PRINTER;;
  lab002* ) PRINTER="printer2";export $PRINTER;;
esac
I haven't tried any of this out.
Joel

On Thu, Dec 05, 2002 at 06:31:17PM -0600, JAMIE CRAWFORD wrote:
> Hello,
> I'll keep it short. I work for Central Missouri State University. I
> have different labs all over campus and wish to have one ghost image
> that has one generic local printer that prints to a rh7.3 lprng print
> server.  Right now I'm having to create different images in some labs,
> just because they have to print to different print queues. Waste of
> time, resources, and disk space.  I was wondering if anyone has a filter
> script that prints to certain printers based only on a machine name
> (example: LAB001-01, LAB002-01).
> 
> if printjob is from machine name lab001-** goto printer 1
> if printjob is from machine name lab002-** goto printer 2
> etc 
> etc
> 
> I'm just looking for ideas or examples. 
> ps. and no roaming printers please!!
> Thanks,
> jamie
> 
> 
> 
> 
> Jamie Crawford, MCSE Network Specialist II
> Information Services
> Central Missouri State University
> Warrensburg, MO 64093
> Phone:6605434357 
> Email:[EMAIL PROTECTED]
> 
> 
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
> 
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
> to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> 
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to