We wrote a little program that looks up the name of the default printer in a file, and sets it to that at login time. All you need is a way to set that filename when you install the image. The API is simple, and there are lots of examples on the web on how to set the printer via the API.
On Thu, Dec 05, 2002 at 06:31:17PM -0600, JAMIE CRAWFORD wrote: > Date: Thu, 05 Dec 2002 18:31:17 -0600 > From: "JAMIE CRAWFORD" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: LPRng: Print to certain printer based on machine name > > 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. > ----------------------------------------------------------------------------- -- William Colburn, "Sysprog" <[EMAIL PROTECTED]> Computer Center, New Mexico Institute of Mining and Technology http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
