* LPD/LPR problem @ 1997-01-29 5:00 Simon H. P. Fung 1997-02-06 5:00 ` Joe Spanicek 0 siblings, 1 reply; 3+ messages in thread From: Simon H. P. Fung @ 1997-01-29 5:00 UTC (permalink / raw) Hello: Could someone show me how to setup my Digital UNIX 4.0 box to print to a HP printer which is connected to the LAN via a HP JetDirect print server? We are able to assigned an IP address to the HP JetDirect print server by BOOTP. We can ping the print server. Our /etc/printcap file contains the following lines: HPJetDirect:\ :ct=remote:\ :mx#0:\ :lp=:\ :rm=192.9.201.8:\ :rp=text:\ :sd=/usr/var/spool/HPJetDirect:\ :lf=/usr/var/spool/HPJetDirect/HPJetDirect.log: The spooling directory has the following characteristics: drwxrwxr-x 2 daemon daemon 8192 Jan 28 16:53 HPJetDirect We tried to use the commands "lpr -PHPJetDirect test.pag" and "lp -dHPJetDirect test.pag" to print to the printer. Nothing was printed. In lpc (status) we get the following display: HPJetDirect: printer is on remote host 192.9.201.8 with name text queuing is enabled printing is enabled 2 entries in spool area Tues Jan 28 16:33:20 1997: waiting for 192.9.201.8 to come up Please advise and any pointers are appreciated. Thanks. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LPD/LPR problem 1997-01-29 5:00 LPD/LPR problem Simon H. P. Fung @ 1997-02-06 5:00 ` Joe Spanicek 1997-02-07 5:00 ` Philip Sterne 0 siblings, 1 reply; 3+ messages in thread From: Joe Spanicek @ 1997-02-06 5:00 UTC (permalink / raw) To: shfung Simon H. P. Fung wrote: > > Hello: > > Could someone show me how to setup my Digital UNIX 4.0 box to print to a HP > printer which is connected to the LAN via a HP JetDirect print server? > > We are able to assigned an IP address to the HP JetDirect print server by > BOOTP. We can ping the print server. > > Our /etc/printcap file contains the following lines: > HPJetDirect:\ > :ct=remote:\ > :mx#0:\ > :lp=:\ > :rm=192.9.201.8:\ > :rp=text:\ > :sd=/usr/var/spool/HPJetDirect:\ > :lf=/usr/var/spool/HPJetDirect/HPJetDirect.log: > > The spooling directory has the following characteristics: > drwxrwxr-x 2 daemon daemon 8192 Jan 28 16:53 HPJetDirect > > We tried to use the commands "lpr -PHPJetDirect test.pag" and "lp > -dHPJetDirect test.pag" to print to the printer. Nothing was printed. > > In lpc (status) we get the following display: > HPJetDirect: > printer is on remote host 192.9.201.8 with name text > queuing is enabled > printing is enabled > 2 entries in spool area > Tues Jan 28 16:33:20 1997: waiting for 192.9.201.8 to come up > > Please advise and any pointers are appreciated. > Thanks. This is my printcap entry: I set it up using the GUI Printer Setup in DU4.0 # HP1600CM Color Postscript DeskJet printer lp1|1|color:\ :lf=/usr/adm/lp1err:\ :lp=:\ :mx#0:\ :rm=qmpcolor:\ :rp=RAW:\ :sd=/usr/spool/lpd1:\ :sh: You may want to try 'rp=RAW' - the printer should be able to distinguish whether it is plain text or postscript. rm: is the name of the printer in Host file, try putting this instead of the IP address. Also go into 'lpc' and do a 'restart all'. See if this brings the printer spool to life. Joe ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LPD/LPR problem 1997-02-06 5:00 ` Joe Spanicek @ 1997-02-07 5:00 ` Philip Sterne 0 siblings, 0 replies; 3+ messages in thread From: Philip Sterne @ 1997-02-07 5:00 UTC (permalink / raw) >>>>> "Joe" == Joe Spanicek <joe@resptk.bhp.com.au> writes: Joe> Simon H. P. Fung wrote: Simon> Could someone show me how to setup my Digital UNIX 4.0 box to Simon> print to a HP printer which is connected to the LAN via a HP Simon> JetDirect print server? Simon> Joe> This is my printcap entry: I set it up using the GUI Printer Setup Joe> in DU4.0 Joe> # HP1600CM Color Postscript DeskJet printer Joe> lp1|1|color:\ Joe> :lf=/usr/adm/lp1err:\ Joe> :lp=:\ Joe> :mx#0:\ Joe> :rm=qmpcolor:\ Joe> :rp=RAW:\ Joe> :sd=/usr/spool/lpd1:\ Joe> :sh: Joe> You may want to try 'rp=RAW' - the printer should be able to Joe> distinguish whether it is plain text or postscript. It would be nice if the printer distinguished between plain text and postscript; unfortunately, it doesn't. If you print a text file to the raw queue on the printer, it ignores carriage returns, and you get a nice staircase effect with the lines marching off to the right of your page. One way around this problem is to set up two queues, one for text, with rp=text in the printcap entry, and the other for everything else (postscript, HPGL, PCL) with rp=raw. The user then has to remember to point text at the text queue and everything else at the raw queue. Another way around it is to set up a filter on the host and turn the text into postscript before firing it at the printer. Then you only need one printcap entry for rp=raw. Don't try to use filtering in the printcap entry though, as it disregards filtering for remote queues. Instead, put a small wrapper around whatever commands you use to print (lpr, lp...), or just pass it through a filter before calling lpr: /usr/lbin/ln03rof< filename | lpr Good luck, Phil -- --------------------------------------------------------------------- Philip Sterne | sterne1@llnl.gov Lawrence Livermore National Laboratory | Phone (510) 422-2510 PO Box 808, L-407, Livermore, CA 94550 | Fax (510) 422-6594 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-02-07 5:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1997-01-29 5:00 LPD/LPR problem Simon H. P. Fung 1997-02-06 5:00 ` Joe Spanicek 1997-02-07 5:00 ` Philip Sterne
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox