From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,35a022bf28b2ac87,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,35a022bf28b2ac87,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-01-19 03:35:30 PST Xref: gmd.de comp.sys.dec:12947 comp.unix.ultrix:12589 Path: gmd.de!urmel.informatik.rwth-aachen.de!beor!jonas From: jonas@beor.informatik.rwth-aachen.de (Josef Nelissen) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: printcap entry for network HP LJ 4 and 5000/240 Date: 19 Jan 94 08:07:26 GMT Organization: Rechnerbetrieb Informatik - RWTH Aachen Message-ID: NNTP-Posting-Host: beor.informatik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Summary: How can the output filter be applied to remote print jobs? Keywords: DECstation,Ultrix,Ethernet,Pacific Net,HP LJ 4,printcap,filter Hi netters, yesterday I ran into some trouble connecting a network HP Laserjet 4M to a DecStation 5000/240, ultrix 4.3. Please note first that this isn't my regular work, but I tried to do a favour to my wife's company where all employees have even less knowledge of Unix and computers than me (though I don't even imagined this would be possible :-). The printer is equipped with a Pacific Net Card, and connecting it to the Ethernet along the lines given by the manual of the card was no problem at all. I assigned an IP adress to the printer as hp4 and pinging and the like worked well. But now the manual left me: There were only hints as to setting up the printer on SUNs, HPs or IBM AIXs - no DEC instructions at all. I used the lprsetup tool to set up the printcap entry as good as possible, using the SUN sample. Note that I had only the printcap(5) manual entry at hand, as the "Guide to System Environment Setup" or the like, which is referenced there wasn't available (thus RTFM is not the advice I'm looking for). I tried many different entries with regard to the ct, lp, rm, and rp entry, but the best I could accomplish was that postscript files were printed correctly, but ascii files got messed up; line feeds weren't transformed to line feeds + carriage return, resulting in a output like This is a linebreak test moreover I had to apply form feed manually for files shorter than one page. The printcap entry used was hp4|HP LaserJet IV M|:\ :af=/usr/adm/hp4acct:\ :ct=remote:\ :if=/usr/lib/lpdfilters/ln03rof:\ :lf=/usr/adm/hp4err:\ :lp=:\ :mx#0:\ :of=/usr/lib/lpdfilters/ln03rof:\ :pl#72:\ :pw#80:\ :rm=hp4:\ :rp=lp:\ :sd=/usr/spool/hp4:\ :sh: :uv=4.0:\ :xc#0177777:\ :xf=/usr/lib/lpdfilters/xf:\ :Xf=xlator_call Note that I used "lpr -Php4 " to print the ascii files. Using "lpr -Php4 -Dascii " didn't print anything at all, though the green flash indicated that actually something reached the printer (though I didn't test this on my own, but I was told by a person I trust in :-). It seems to me that the output filter isn't applied to ascii file, but I have no idea how to fix this. Can please anybody enlighten me how to change the printcap entry to accomplish a proper behaviour?!? On a related note: The laserjet printer is installed via pathworks as well, printing from windows works (thanks to postscript :-), but using netprint results in a "device not redirected" error message (that's second hand information as well). Any clue on this one? Any help would be appreciated, answers by e-mail preferred. Thanx in advance Josef -- Josef Nelissen, Lehrstuhl fuer Angewandte Mathematik, insbesondere Informatik, RWTH-Aachen, Ahornstr. 55, D-52074 Aachen, Germany, Tel. +49 241/80-21060, FAX +49 241/80-21079, e-mail jonas@beor.informatik.rwth-aachen.de *************Experience is what you have got after you needed it.*************