Discussion:
redirect print jobs
(too old to reply)
Rich Glazier
2010-04-06 18:44:47 UTC
Permalink
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:
Rich Glazier
2010-04-06 19:51:16 UTC
Permalink
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 <***@yahoo.com>
To: tru64-unix-***@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:

Loading...