tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Redirect print jobs
@ 1999-06-10 16:11 Lee, Hank
  0 siblings, 0 replies; 3+ messages in thread
From: Lee, Hank @ 1999-06-10 16:11 UTC (permalink / raw)
  To: tru64-unix-managers

Hi Managers,

I just have a quick question about printer setup. Short of doing the
following (excerpt from /etc/printcap), is there a way to massively redirect
all printjobs to a certain machine? 

LP2:\
        :if=:\
        :lp=:\
        :mx#0:\
        :of=:\
        :rm=printsvr:\
        :rp=lp2:\
        :sd=/usr/spool/lpd/LP2:\
        :sh:\
        :xf=/usr/lbin/xf:


I'd like to designate one machine as the print server, and have all my other
servers pass printjobs to it. The machines are running DU 4.0D jumbo patch
kit 3.

Thanks.


--
Hank Lee <hank.lee@vta.org>
UNIX Systems Administrator
SAP Basis Administrator
Santa Clara County Transit District

^ permalink raw reply	[flat|nested] 3+ messages in thread

* redirect print jobs
@ 2010-04-06 18:40 Rich Glazier
  2010-04-06 19:48 ` SUMMARY: " Rich Glazier
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Glazier @ 2010-04-06 18:40 UTC (permalink / raw)
  To: tru64-unix-managers

This seems like something I should be able to do with little effort, but I'm having a problem figuring out how to do this. LP0 printer is physically bad. LP41 is the same type of printer (on the same network) and is working fine. I want when people print to LP0, that get redirected to LP41. I don't believe I have the Advanced Printing installed. The "printconfig" utility doesn't work. Here's what the printcap file looks like. I'm just a little lost, as I haven't touched T64 printing in many years. In the mean time, I'm trying to RTFM! ;)

Thanks for the help.

T645.1A PK6

lp0|LP0|0:\
        :fo:\
        :lf=/usr/adm/lpderr:\
        :lp=:\
        :mx#0:\
        :pl#68:\
        :pw#132:\
        :rm=freddy:\
        :rp=LPDPRT1:\
        :sd=/usr/spool/lpd:
lp41|LP41|41:\
        :lf=/usr/adm/lp41err:\
        :lp=:\
        :mx#0:\
        :pl#68:\
        :pw#132:\
        :rm=lp41:\
        :rp=IT_DATAPRODUCTS:\
        :sd=/usr/spool/lpd41:\
        :sh:






^ permalink raw reply	[flat|nested] 3+ messages in thread

* SUMMARY: redirect print jobs
  2010-04-06 18:40 redirect print jobs Rich Glazier
@ 2010-04-06 19:48 ` Rich Glazier
  0 siblings, 0 replies; 3+ messages in thread
From: Rich Glazier @ 2010-04-06 19:48 UTC (permalink / raw)
  To: tru64-unix-managers

Adding lp0 to the allias of lp41 worked (lp41|LP41|41|lp0|LP0|0:\). I then commented out the lp0 lines. Thanks to everyone's help.


From Ralf:
I'm a fair way removed from the issue as well, but wouldn't changing the line :rm=freddy:\to :rm=lp41:\ and :rp=LPDPRT1:\ to :rp=IT_DATAPRODUCTS:\ work? You would also probably need to: 
#lpc 
lpc> stop lp0 
lpc> clean lp0 
lpc> start lp0 
lpc> exit 

to restart the spooler for lp0. I'm not 100% on this as all of our printing is tcpip where all you would need to do is change the IP address of the lp0 printer to the lp41 printer in the hosts file or on your dns server. 

From Scot
Did you try to change the "rm remote machine" on lp41 to match the rm on lp0?  You could just replace everything after lp0|LP0|0:\  with what occurs after lp41|LP41|41:\.  Save the existing entry of lp0 by commenting it out. 

From John
Make a backup of your /etc/printcap file before making changes (just in case).

Then add lp0 as an alias in the lp41 setup. Then remove (or comment out) the original lp0 configuration. You may have to stop and restart the lpd daemon.

Any application that tries to print to lp0 will use lp41.

The first line in your configuration for lp41 would look something like this:

lp41|lp0:\



----- Original Message ----
From: Rich Glazier <rglazier2002@yahoo.com>
To: tru64-unix-managers@ornl.gov
Sent: Tue, April 6, 2010 12:40:13 PM
Subject: redirect print jobs

This seems like something I should be able to do with little effort, but I'm having a problem figuring out how to do this. LP0 printer is physically bad. LP41 is the same type of printer (on the same network) and is working fine. I want when people print to LP0, that get redirected to LP41. I don't believe I have the Advanced Printing installed. The "printconfig" utility doesn't work. Here's what the printcap file looks like. I'm just a little lost, as I haven't touched T64 printing in many years. In the mean time, I'm trying to RTFM! ;)

Thanks for the help.

T645.1A PK6

lp0|LP0|0:\
        :fo:\
        :lf=/usr/adm/lpderr:\
        :lp=:\
        :mx#0:\
        :pl#68:\
        :pw#132:\
        :rm=freddy:\
        :rp=LPDPRT1:\
        :sd=/usr/spool/lpd:
lp41|LP41|41:\
        :lf=/usr/adm/lp41err:\
        :lp=:\
        :mx#0:\
        :pl#68:\
        :pw#132:\
        :rm=lp41:\
        :rp=IT_DATAPRODUCTS:\
        :sd=/usr/spool/lpd41:\
        :sh:





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-06 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 18:40 redirect print jobs Rich Glazier
2010-04-06 19:48 ` SUMMARY: " Rich Glazier
  -- strict thread matches above, loose matches on Subject: below --
1999-06-10 16:11 Redirect " Lee, Hank

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